Releases: shannonmoeller/gulp-hb
Releases · shannonmoeller/gulp-hb
v3.0.0
Bugfixes:
Features:
- Now possible to specify
Handlebars.compile
options (#28). - File objects now attached to error objects for easier debugging (#23).
Breaking changes:
- The
file.data
property is now used as the default context for each template with registered data available as the parent frame and as the@root
context. See File-Specific Data. - Upgraded
handlebars-registrar
tohandlebars-wax
which introduces new options, a fluent api for registration, and easier control over naming partials, helpers, and decorators. - Auto-generated names based on globbed files no longer resolve to the shortest unique file path. The previous functionality led to many misunderstandings about what partials and helpers would be registered. The logic now works very similarly to that of
gulp.src
where paths are determined based on the globbed portion of a path and the value ofoptions.base
. In most cases this works how many people asking for support assumed it would work in the first place. Seehandlebars-wax
.
v2.6.4
Bugfixes:
- Moved template compilation to after the
dataEach()
call to allow the template to be modified in thedataEach()
callback.