Mustache v2.7.0 Release Notes
Release Date: 2014-08-26 // over 9 years ago-
- โ Add template inheritance, via the BLOCKS pragma. Thanks @jazzdan and the rest of the @etsy devs!
- โ Add a
pragmas
option to the Mustache_Engine constructor for enabling default pragmas. - ๐ A couple of performance improvements. Thanks @nizsheanez!
- Code cleanup. Thanks @keradus!
- Check coding standards on CI. Thanks @keradus!
- ๐ Fix whitespace bug in nested partials. Thanks for the bug report, @mikesherov and @behance!
- ๐ Allow omitting the filters on closing section tags, for example,
{{# a | b }}{{/ a }}
is now valid. - โ Increase test coverage, improve comments and examples.
๐ If you process Mustache parse trees yourselfโฆ
๐ Note that the parse tree representation of filtered interpolation and section tokens has changed. The tag name is now separate from the filters list. For example, the template:
{{%FILTERS}} {{ foo | bar }}
๐ was parsed as:
[["type" =\> "%","name" =\> "FILTERS","line" =\> 0], ["type"=\> "\_v","name"=\> "foo | bar | baz","otag"=\> "{{","ctag"=\> "}}","line"=\> 0,"index" =\> 33]]
๐ but is now parsed as:
[["type" =\> "%","name" =\> "FILTERS","line" =\> 0], ["type"=\> "\_v","name"=\> "foo","otag"=\> "{{","ctag"=\> "}}","line"=\> 0,"index"=\> 33,"filters" =\> ["bar","baz"] ]]