All Versions
10
Latest Version
Avg Release Cycle
220 days
Latest Release
1400 days ago
Changelog History
Changelog History
-
v2.13.0 Changes
November 23, 2019- ๐ Fix notices on PHP 7.4 (Thanks @tomjn, @stronk7, and @JoyceBabu!)
- ๐ Fix a parse error in the delimiter change tag (e.g.
{{=<% %>=}}
) and throw a syntax error when it's invalid. - ๐ Improve Tokenizer::scan performance by 98.2%.
- โ Test against all the PHPs in CI.
-
v2.12.0 Changes
July 11, 2017- Prevent redundant Autoloader registration (Thanks @hcpss-banderson!)
- โ Add a ProductionFilesystemLoader, which doesn't read template file contents before every render.
- ๐ Improve test coverage.
- ๐ Fix a bug when rendering the same block names multiple times in one template.
- โ Add a
delimiters
option for overriding default delimiters at the engine level. - Add validation to prevent empty
template_class_prefix
config.
-
v2.11.1 Changes
July 31, 2016- ๐ Fix test bootstrap in PHP < 5.5
-
v2.11.0 Changes
July 31, 2016- โ Add support for exception chaining (Thanks @thewilkybarkid!)
- ๐ Support parent tags and block args as direct children of blocks and sections.
- โ Add support for non-local templates via FilesystemLoader (Thanks @oschettler!)
-
v2.10.0 Changes
February 27, 2016- ๐ Respect delimiter changes inside lambda sections. See janl/mustache.js#489
- ๐ Fix incorrect padding added to lambda values inside partials. See #286
- ๐ Make LambdaHelper invokable. See #285
-
v2.9.0 Changes
August 15, 2015- ๐ Lazily evaluate template BLOCKS pragma sections. See #264 and #265. Thanks @damyon!
- โ Add ANCHORED-DOT pragma to enable "anchored dot notation". See #129 and mustache/spec#52
- ๐ A bit of CS cleanup, and remove the unused create_example script.
-
v2.8.0 Changes
April 01, 2015- ๐ Tons of CS fixes. Thanks @keradus!
- ๐ Fix for extra indent inside template inheritance sections.
-
v2.7.0 Changes
August 26, 2014- โ 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"] ]]
-
v2.6.1 Changes
June 20, 2014 -
v2.6.0 Changes
June 20, 2014Lots of little changes, plus two bigger ones:
- ๐ Fix disabling lambda template cache option: it didn't before, now it does.
- ๐ Improve tokenizer performance: 25-60% performance boost!