While Handlbars.js is already a Node.js module, it cannot be used directly as an Express.js view engine. This module will fill that role until Handlebars.js adds Express.js view engine support directly.
npm install hbs
To set hbs as default view engine:
app.set("view engine", "hbs");
test/server source code.
__get__ function is not supported within block helper functions.
Migrating to 1.0.0
- Version number bumped to 1.0.0 to match
Handlebarsis now loaded using
requireand is longer embedded.
registerPartialmethods are exported.
Migrating from 0.0.3 from 0.0.2
Handlebars' block-helpers now needs to be in
blockHelpers (see example above) instead of