All Versions
Latest Version
Avg Release Cycle
220 days
Latest Release
1669 days ago

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
    • Code cleanup (thanks @keradus!)
    • ๐Ÿ›  Fix parse error with mismatched triple-mustache delimiters (thanks @smarden1!)
  • v2.6.0 Changes

    June 20, 2014

    Lots 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!