Mustache.php v2.11.1

@bobthecow bobthecow released this Jul 31, 2016

  • Fix test bootstrap in PHP < 5.5

Downloads

Mustache.php v2.11.0

@bobthecow bobthecow released this Jul 31, 2016 · 4 commits to master since this release

  • 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!)

Downloads

Mustache.php v2.10.0

@bobthecow bobthecow released this Feb 27, 2016 · 22 commits to master since this release

  • 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

Downloads

Mustache.php v2.9.0

@bobthecow bobthecow released this Aug 15, 2015 · 31 commits to master since this release

  • 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.

Downloads

Mustache.php v2.8.0

@bobthecow bobthecow released this Apr 1, 2015 · 47 commits to master since this release

  • Tons of CS fixes. Thanks @keradus!
  • Fix for extra indent inside template inheritance sections.

Downloads

Mustache.php v2.7.0

@bobthecow bobthecow released this Aug 26, 2014 · 97 commits to master since this release

  • 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"
    ]
  ]
]

Downloads

Mustache.php v2.6.1

@bobthecow bobthecow released this Jun 20, 2014 · 149 commits to master since this release

  • Code cleanup (thanks @keradus!)
  • Fix parse error with mismatched triple-mustache delimiters (thanks @smarden1!)

Downloads

Mustache.php v2.6.0

@bobthecow bobthecow released this Apr 14, 2014 · 171 commits to master since this release

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!

Downloads

Mustache.php v2.5.1

@bobthecow bobthecow released this Jan 9, 2014 · 210 commits to master since this release

Fix a tokenization error with sections containing only the number zero.

Yay PHP!

Downloads