- Update some dependencies to fix 4 known security vulnerabilities (#26)
- fixing errors caused by missing partials dir
- allowing front-matter data to be used in layout
- Added ability to set local layout to null to render view w/out layout (when defaultLayout is set).
- fixing nasty data clobbering bug caused by not using clean objects
- merging in
ctx.state
during rendering as well
- upgrading to
handlebars@3
- adding support for injecting locals as yaml front-matter on views and layouts
- simplified pre-rendering by just using
options.body
instead of changing the signature of.render()
- added ability to pre-render views external to koa-handlebars
- added
options.data
for adding private render data
- massive internal overhaul
- many more configuration options, no longer encouraging custom
Renderer
(although it's still available) - no longer injecting data to
locals
(using handlebars'options.data
instead) - default
options.partialId
now camel-cases by default - 100% test coverage :)
- probably more... just read current readme
- adding custom error message
- adding
options.beforeRender
fn to make last-minute adjustments before rendering
- adding
_view
and_layout
to locals during render - cloning
locals
before modifying so we don't clobber the original
- merging app.locals during rendering
- adding unit tests (fixes #1)
- adding inline docs (fixes #3)
- a couple small bugfixes
- correcting the spelling of path options internally (oops)
- took ownership of the
koa-handlebars
name on npm (needed to use a previously unpublished version number)
- initial release