I\'m using the handlebars.js hbs wrapper in express.js. I have templates working fine, but I\'m needing to add in partials to be rendered with my views.
I\'d like to
Looks like creating a variable and pulling in the template code manually works:
var hbs = require('hbs') , fs = require('fs') , headerTemplate = fs.readFileSync(__dirname + '/views/_header.hbs', 'utf8');
and later:
hbs.registerPartial('headPartial', headerTemplate);