Closed markbarton closed 10 years ago
As soon as I posted I solved the issue - apologies.
The solution was as simple as:
var hbs = exphbs.create({ defaultLayout: 'main', partialsDir: [ 'views/partials/' ], extname:'.handlebars'
});
Swag.registerHelpers(hbs.handlebars);
Glad you got it figured out!
Thanks Mark!
Brilliant timesaver thanks Mark!
Cheers
I looked at the closed issue (#47) but can't seem to get Swag - https://github.com/elving/swag to work with hbs - using Express 4 if this makes any difference.
Swag wants to call registerHelpers on the handlebars instance - this method doesnt exist - I am probably missing something obvious.
Any help?