handlebars-layouts
Advanced tools
Changelog
3.1.2
Bugfixes:
handlebars.createFrame
with options.data
and using the result with partials.Changelog
3.1.0
Features:
extend
and embed
helpers now support a custom context to match the signature and features of the default partials syntax: {{> partialName contextObject foo=bar }}
. (#21)Changelog
3.0.0
Breaking Changes:
@content
value has been removed in favor of the updated content
helper.Features:
content
helper may now be used as a subexpression to check for the existance of block content. (#22)Before: {{#if @content.foo}} {{{block "foo"}}} {{/if}}
After: {{#if (content "foo")}} {{{block "foo"}}} {{/if}}
Changelog
2.0.1
Bugfixes:
Changelog
2.0.0
Breaking changes:
handlebarsLayouts(handlebars)
function no longer automatically registers helpers. Instead it returns an object which is compatible with the Handlebars.registerHelper
method. If you want the helpers to automatically be registered, use handlebarsLayouts.register(handlebars)
instead. The return value of both functions has been changed to be the object of helpers rather than the passed-in handlebars instance. (#15)Features:
@content
variable to facilitate conditional blocks. (#16)Changelog
1.1.0
Features:
extend
and embed
and are added to the partial's data context.