handlebars

Handlebars templating language


This extension embeds a Handlebars interpreter into PHP, allowing the execution of Handlebars templates.

License: BSD-2-Clause

Latest releases

Version Release Download
1.0.0 2022-11-27 handlebars-1.0.0.tgz
0.9.2 2020-12-07 handlebars-0.9.2.tgz
0.9.1 2020-04-18 handlebars-0.9.1.tgz
0.9.0 2020-04-17 handlebars-0.9.0.tgz
0.8.3 2018-11-11 handlebars-0.8.3.tgz
Show all releases

Changelog

Version Message
1.0.0 - PHP 8.1 and 8.2 compat
- Target handlebars.js v4.7.7
- Target handlebars.c v1.0.0
- Objects can now be iterated with `#each`
- `known_helpers` is now passed properly to the compiler in `render`
0.9.2 - Fixes for PHP 8
0.9.1 - Fixed test failure on PHP 8 (@remicollet)
- Fixed test failure on 32bit
- The compiled template produced by `Handlebars\VM::compile()` should now be deterministic, if using handlebars.c >= 0.7.1.
0.9.0 - Preliminary PHP 8 support
- Support for precompiling templates
- Mustache-style lambda support
- Drop max PHP version constraint
- Selective helper options omission
- Improved typehints
See CHANGELOG.md for full details
0.8.3 - Allow installation on PHP 7.3
- Removed class aliases `Handlebars\Registry\Registry` for `Handlebars\Registry` and `Handlebars\Registry\DefaultRegistry` for `Handlebars\DefaultRegistry`
Show complete changelog