Skip to content

Update API, Partials, Helpers

Compare
Choose a tag to compare
@jwilm jwilm released this 26 Dec 19:43
· 97 commits to master since this release

The primary API now uses Koa middleware to attach itself to the application:

app.use(hbs.middleware({
  viewPath: __dirname + '/views'
}));
  • Added support for synchronous helpers
  • Added support for partials and directories of partials