Skip to content

Commit cd35774

Browse files
committed
Release 1.2.3
1 parent 547d603 commit cd35774

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
55

6+
## [1.2.3] Hoisted Closures - 2026-04-10
7+
### Changed
8+
- Improved rendering performance by hoisting the closures for block bodies and `{{else}}` clauses,
9+
avoiding unnecessary re-allocation on repeated invocations.
10+
11+
### Fixed
12+
- Failure to call ambiguous helper (e.g. `{{foo}}`) in `strict` mode.
13+
- `blockParams` count in `HelperOptions` for inverse helper calls.
14+
15+
616
## [1.2.2] Faithful Dispatch - 2026-04-05
717

818
### Changed
@@ -235,6 +245,7 @@ Initial release after forking from LightnCandy 1.2.6.
235245
- HTML documentation.
236246
- Dozens of unnecessary feature flags.
237247

248+
[1.2.3]: https://github.com/devtheorem/php-handlebars/compare/v1.2.2...v1.2.3
238249
[1.2.2]: https://github.com/devtheorem/php-handlebars/compare/v1.2.1...v1.2.2
239250
[1.2.1]: https://github.com/devtheorem/php-handlebars/compare/v1.2.0...v1.2.1
240251
[1.2.0]: https://github.com/devtheorem/php-handlebars/compare/v1.1.0...v1.2.0

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ A blazing fast, spec-compliant PHP implementation of [Handlebars](https://handle
55
Originally based on [LightnCandy](https://github.com/zordius/lightncandy), but rewritten to enable
66
full Handlebars.js compatibility without excessive feature flags or performance tradeoffs.
77

8-
PHP Handlebars compiles and executes complex templates up to 40% faster than LightnCandy, with 60% lower memory usage:
8+
PHP Handlebars compiles and executes complex templates over 40% faster than LightnCandy, with 60% lower memory usage:
99

1010
| Library | Compile time | Runtime | Total time | Peak memory usage |
1111
|--------------------|--------------|---------|------------|-------------------|
1212
| LightnCandy 1.2.6 | 5.2 ms | 2.8 ms | 8.0 ms | 5.3 MB |
13-
| PHP Handlebars 1.2 | 3.2 ms | 1.5 ms | 4.7 ms | 1.9 MB |
13+
| PHP Handlebars 1.2 | 3.2 ms | 1.4 ms | 4.6 ms | 1.9 MB |
1414

1515
_Tested on PHP 8.5 with the JIT enabled. See the `benchmark` branch to run the same test._
1616

0 commit comments

Comments
 (0)