Bugfixes:
Bugfixes:
- Handlebars wasn't playing nice with Object.create, so all cases have been removed in favor of property copying.
- Now using
handlebars.createFrame
withoptions.data
and using the result with partials.
Bugfixes:
- Corrected handling of partial context when the native syntax is used inside of an embed. (#25)
Features:
- The
extend
andembed
helpers now support a custom context to match the signature and features of the default partials syntax:{{> partialName contextObject foo=bar }}
. (#21)
Breaking Changes:
- The
@content
value has been removed in favor of the updatedcontent
helper.
Features:
- The
content
helper may now be used as a subexpression to check for the existance of block content. (#22)
Bugfixes:
- Fixed a regression in the order of content rendering. (#18)
Bugfixes:
- Added files missing from a bad commit.
Breaking changes:
- The
handlebarsLayouts(handlebars)
function no longer automatically registers helpers. Instead it returns an object which is compatible with theHandlebars.registerHelper
method. If you want the helpers to automatically be registered, usehandlebarsLayouts.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:
- Exposed
@content
variable to facilitate conditional blocks. (#16)
Features:
- Arbitrary attributes may now be given to
extend
andembed
and are added to the partial's data context.
Breaking changes:
- Consolidated
append
,prepend
, andreplace
helpers into a singlecontent
helper that accepts amode
attribute. (Thank you Assemble contributors).
Features:
- Deep inheritance.
- Added an
embed
helper to insert a partial that extends from its own layout. - Added test server for use with Express.
Bugfixes:
- Browserify build was not properly wrapping module with UMD due to missing
standalone
option. Fixes AMD issues.
Bugfixes:
- Corrected git paths in
package.json
.
Features:
- Added support for Assemble-style registration by exposing a
register
method.
Features:
- Refactor.
- Switched from Grunt to Gulp.
- Improved tests including coverage.
Features:
- Blocks may now be appended to, prepended to, and replaced multiple times.
Bugfixes:
- Support precompiled templates.