- Fixed issue #21: WithFrontMatter incompatible with
Nodes::inheriting()
(@thekid)
- Made compatible with XP 12 - @thekid
- Made compatible with https://github.com/xp-forge/yaml 7.0 and 8.0 (@thekid)
- Merged PR #20: Add support for fragment parameters - @thekid
- Made compatible with https://github.com/xp-forge/frontend version 6.0 (@thekid)
- Merged PR #19: Support nested fragments - @thekid
- Added PHP 8.4 to test matrix - @thekid
- Heads up: Dropped compatibility with
xp-forge/handlebars
versions lower than 9.1.0 (@thekid) - Merged PR #15: Implement fragments, which can thought of as "instantly- invoked inline partials". (@thekid)
- Merged PR #14: Make it possible to pass fragments to the
render()
andwrite()
methods. This will select an inline partial and render that instead of the whole template. (@thekid)
- Made this library compatible with
xp-forge/handlebars
version 9.0, see xp-forge/handlebars#27 (@thekid) - Merged PR #13: Refactor frontmatter to no longer use decorations API (@thekid)
- Fixed PHP 8.3 compatibility in
number
helper. This is due to the change how negative decimals were handled in number_format(). Before, they were simply ignored (which is what we relied on), now they're used for rounding, see php/php-src#11487 (@thekid) - Added forward compatibility with
xp-forge/frontend
version 5.0, see xp-forge/frontend#37 (@thekid)
- Merged PR #12: Add render() method which returns the result as a string (@thekid)
- Merged PR #11: Migrate to new testing library - @thekid
- Cast input argument to integer in
count
helper - @thekid
- Made compatible with
xp-forge/frontend
version 4.0.0 - @thekid
- Upgrade to
xp-forge/handlebars
version 8.0.0 - @thekid
- Merged PR #10: Allow passing maps to extensions - @thekid
- Merged PR #9: Add helper functions extension - @thekid
- Fixed "Creation of dynamic property" warnings in PHP 8.2 - @thekid
- Made library compatible with XP 11,
xp-forge/handlebars
version 7.0.0 (@thekid)
- Merged PR #5 - Add
web.frontend.helpers.Numbers
to format numbers and percentages. Provides number, percent and count helpers. (@thekid)
- Merged PR #8 - Support YAML front matter. Implements feature present in a broad variety of frontend templating systems, inlcuding Jekyll, Hugo and NuxtJS (@thekid)
- Added compatibility with
xp-forge/handlebars
version 6.0:- Single quotes are now escaped as
'
- Log levels supplied via
level="..."
are now shown - Missing assets use log level error
- Now supports block params, e.g.
#{{with ... as |alias|}}
- Now supports
else if
syntactic sugar (@thekid)
- Single quotes are now escaped as
- Added
assets
helper which logs missing assets, implementing #6 (@thekid)
- Changed constructor argument extensions from vararg to array (@thekid)
- Made compatible with
xp-forge/frontend
version 3.0 - @thekid
- Fixed timezone handling in conjunction with
timestamp
parameter (@thekid)
- Implemented basic timezone handling by passing default timezone to
the
web.frontend.helpers.Dates
helpers extension, overwriteable by passing e.g.timezone="America/New_York"
in the handlebars helper. (@thekid) - Merged PR #4: Make template engine extensible; and extract the hard wired date formatting to its own extension (@thekid)
- Merged PR #2: Logging. Using the development webserver, this will show the debug page - for production, the content will be written to the server's standard output. (@thekid)
- Add support for milliseconds resolution in timestamps to
date
helper, thus being able to use JavaScript timestamps. (@thekid)
- Add
any
,none
andall
helpers - @thekid - Add
min
andmax
helpers - @thekid - Add
contains
helper - @thekid
- First public release - @thekid