handlebars.js v2.0.0-alpha.1 Release Notes
Release Date: 2014-02-10 // about 10 years ago-
- #182 - Allow passing hash parameters to partials (@kpdecker)
- #392 - Access to root context in partials and helpers (@kpdecker)
- #472 - Helpers cannot have decimal parameters (@kayleg)
- #569 - Unable to lookup array values using @index (@kpdecker)
- #491 - For nested helpers: get the @ variables of the outer helper from the inner one (@kpdecker)
- #669 - Ability to unregister a helper (@dbachrach)
- #730 - Raw block helpers (@kpdecker)
- #634 - It would be great to have the helper name passed to
blockHelperMissing
(@kpdecker) โฌ๏ธ #658 - Depthed helpers do not work after an upgrade from 1.0.0 (@xibxor)
#671 - Crashes on no-parameter {{#each}} (@stepancheg)
#699 - @DATA not compiles to invalid JS in stringParams mode (@kpdecker)
#705 - 1.3.0 can not be wrapped in an IIFE (@craigteegarden)
#706 - README: Use with helper instead of relying on blockHelperMissing (@scottgonzalez)
๐ #700 - Remove redundant conditions (@blakeembrey)
#704 - JavaScript Compiler Cleanup (@blakeembrey)
Compatibility notes:
helperMissing
helper no longer has the indexed name argument. Helper name is now available viaoptions.name
.- Precompiler output has changed, which breaks compatibility with prior versions of the runtime and precompiled output.
JavaScriptCompiler.compilerInfo
now returns generic objects rather than javascript source.- AST changes
- INTEGER -> NUMBER
- Additional PartialNode hash parameter
- New RawBlockNode type
- ๐ Data frames now have a
_parent
field. This is internal but is enumerable for performance/compatibility reasons.