hbs
hbs copied to clipboard
Express view engine wrapper for Handlebars
This is a tracking issue for release 5.0. **Please keep feature requests in their own issues** If you want to make a comment on a particular change, please make the...
Handlebars supports a second `options` parameter for compiling that affects the compiled template. Based on a quick look through https://github.com/pillarjs/hbs/blob/master/lib/hbs.js it seems hbs has no way to provide options for...
Hello, I'm wondering if there is a way to nest layouts. I see in the `express-hbs`engine you can have something like the following: **layouts/site.hbs** ``` hbs {{{body}}} ``` **layouts/with-header-footer.hbs** ```...
Using a property called "settings" in the data passed to a view/template breaks the app. As far as I've investigated the `settings` property is used by `hbs.js` in the `middleware`...
I'm getting the following error with this library, using v16.13.2 of node \node_modules\hbs\lib\hbs.js:102 cb(prependFilenameToError(filename, err)) ^ TypeError: cb is not a function at \node_modules\hbs\lib\hbs.js:102:9 at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)