Releases: devtheorem/php-handlebars
Releases · devtheorem/php-handlebars
0.9.9 Stringable Conditions
0.9.8 String Escaping
Added
Handlebars::escapeExpression()method (equivalent to theHandlebars.escapeExpression()utility function in Handlebars.js).
Removed
- Unnecessary
$escapeparameter on SafeString constructor.
Fixed
- Nested else if validation (fixes zordius/lightncandy#313).
- Escaping multiple double quotes (fixes zordius/lightncandy#298).
- Single-quoted string parsing and compiling.
0.9.7 Resolvers
Added
helperResolverandpartialResolvercompile options for dynamic handling of partials and helpers (#1).
0.9.6 Partial Indentation
Fixed
- Indentation of nested partials (fixes zordius/lightncandy#349).
- Parsing hash options containing line breaks (fixes zordius/lightncandy#310).
- Parameter type error in strict mode.
- Parsing raw block helper params.
0.9.5 Block Parameter Parsing
Fixed
- Parsing block parameters with extra surrounding whitespace (fixes zordius/lightncandy#371).
0.9.4 String Arguments
Fixed
- Parsing single-quoted string arguments (fixes zordius/lightncandy#281, zordius/lightncandy#357, zordius/lightncandy#367).
0.9.3 Raw Block Parsing
Fixed
- Correctly parse handlebars after raw block (fixes zordius/lightncandy#344).
0.9.2 Arrow Function Helpers
Added
- Support for arrow function helpers (fixes zordius/lightncandy#366).
Fixed
- Parse error when using length with
@root(from zordius/lightncandy#370).
0.9.1 Better Return Type
Added
- Detailed return annotation for
compile()method.
0.9.0 Modern Cleanup
Initial release after forking from LightnCandy 1.2.6.
Added
- New
compilemethod which takes a template string and options and returns an executableClosure.
Changed
- PHP 8.2+ is now required.
- Replaced compile options array with
Optionsobject. - Replaced helper options array with
HelperOptionsobject. - Renamed old
compilemethod toprecompile. - Replaced
preparemethod with much fastertemplatemethod, and removed dependency on URL include and filesystem write access.
Fixed
- 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.
Removed
- Custom autoloader.
- Used feature tracking.
- Option to change delimiters.
partialresolveroption.compilePartialmethod.prepartialcallback option.renderexoption to inject compiled code.- Option to change runtime class.
- HTML documentation.
- Dozens of unnecessary feature flags.