Skip to content

Releases: shannonmoeller/gulp-hb

v3.0.0

18 Feb 20:44
Compare
Choose a tag to compare

Bugfixes:

  • Cross-contamination eliminated by creating a fresh instance of Handlebars every time (#24, #29).

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 to handlebars-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 of options.base. In most cases this works how many people asking for support assumed it would work in the first place. See handlebars-wax.

v2.6.4

18 Feb 20:45
Compare
Choose a tag to compare

Bugfixes:

  • Moved template compilation to after the dataEach() call to allow the template to be modified in the dataEach() callback.