Download Latest Version Mustache.php v3.2.0 source code.zip (69.8 kB) Google Add to Preferred Sources
Home / v3.1.0
Name Modified Size InfoDownloads / Week
Parent folder
Mustache.php v3.1.0 source code.tar.gz 2026-04-30 39.3 kB
Mustache.php v3.1.0 source code.zip 2026-04-30 61.6 kB
README.md 2026-04-30 1.3 kB
Totals: 3 Items   102.2 kB 0

Mustache.php v3.1.0 is primarily a performance release:

Rendering performance is significantly improved since v3.0.0; render throughput is improved by 1.66x on average. Template inheritance and deep context lookup workloads see gains of up to 2.7x. Memory usage in general is fairly flat, but for more extreme cases, peak memory usage is reduced by up to 46%.

In addition to performance, this release includes:

  • Template compilation itself is also faster: lambda compilation is ~30% faster and uses ~25% less memory on extremely complex templates.
  • Improved spec compliance for inheritance whitespace, specifically cases where parent-template indentation was incorrectly compounded onto inherited blocks rendered through nested partials.
  • The template_class_prefix engine option validates at configuration time, rejecting invalid class-name prefixes that would lead to broken compilation.

Heads up:

  • Lambdas now correctly honor the enclosing section's delimiters when re-parsing their return value. Previously, lambda return values were always re-parsed with the default {{ }} delimiters, regardless of the surrounding section. Templates that use lambdas inside custom-delimiter sections may produce different output than under v3.0.0.
Source: README.md, updated 2026-04-30