kaniosrn-j
8/8/2017 - 3:10 PM

Set handlebar.js partials

Set handlebar.js partials

const hbs = require('hbs');
// user handlebar js
// this will takes hte directory you want to use for all of your handlebar partial files 
// and we're going to be specifying that directory as the first and only argument
hbs.registerPartials(__dirname + '/views/partials');
// usage:-
// {{> header}}
// {{>footer}}