All notable changes to this project will be documented in this file.
0.9.4 String Arguments - 2025-03-23
- Parsing single-quoted string arguments. (Fixes zordius/lightncandy#281, zordius/lightncandy#357, zordius/lightncandy#367).
0.9.3 Raw Block Parsing - 2025-03-20
- Correctly parse handlebars after raw block (fixes zordius/lightncandy#344).
0.9.2 Arrow Function Helpers - 2025-03-19
- Support for arrow function helpers.
- Parse error when using length with
@root
(from zordius/lightncandy#370).
0.9.1 Better Return Type - 2025-03-18
- Detailed return annotation for
compile()
method.
0.9.0 Modern Cleanup - 2025-03-18
Initial release after forking from LightnCandy 1.2.6.
- New
compile
method which takes a template string and options and returns an executableClosure
.
- PHP 8.2+ is now required.
- Replaced compile options array with
Options
object. - Replaced helper options array with
HelperOptions
object. - Renamed old
compile
method toprecompile
. - Replaced
prepare
method with much fastertemplate
method, and removed dependency on URL include and filesystem write access.
- Rendering data in
{{else}}
of{{#each}}
(from zordius/lightncandy#369). - Parsing strings with escaped quotes and parentheses (based on zordius/lightncandy#358).
- Argument count for built-in helpers is now validated.
- Custom autoloader.
- Used feature tracking.
- Option to change delimiters.
partialresolver
option.compilePartial
method.prepartial
callback option.renderex
option to inject compiled code.- Option to change runtime class.
- HTML documentation.
- Dozens of unnecessary feature flags.