Releases: yetamine/net.yetamine.template
Releases · yetamine/net.yetamine.template
Release version 1.4.0
An update with an important fix and a couple of new features:
- Fix wrong expansion of constants with
TemplateRecursion
. TemplateRecursion::resolve
made public (which was forgotten in the previous release).Interpolation
now supports several new options (see below).- A few documentation improvements.
Interpolation
was revamped and significantly extended. It is now possible to double a placeholder opening sequence to escape it (i.e., the escaping sequence can be equal to the opening sequence) and it is possible to define a placeholder with no closing sequence, but rather a predicate to determine the end of the placeholder. This allows making such $simple_placeholders
with no brackets.
Release version 1.3.0
A significant update with a lot of improvements and new features:
TemplateRecursion
brings a flexible recursion-capable resolver.TemplateDefinition
was introduced to coupleTemplateFormat
with aTemplate
where both is needed at once.TemplateTesting
was deprecated in favour ofSource
, a new class with additional features.- Standard template representations (like
TemplateLiteral
) got more accessible for some special use cases. - Contract of
Template::apply
has been explained in a better way. - Automatic module name was defined for JPMS (a.k.a. Jigsaw).
Release version 1.2.0
A small extension to support better unescapable formats, which allows using Interpolation
without any escaping sequence as well.
Release version 1.1.0
A few minor additions:
- Added
TemplateResolvingException
andTemplateSyntaxException
to support the usual problems in a well-documented way. Not used actually by the standard implementation (classInterpolation
) so far, as this implementation is highly tolerant. - Improved the default
TemplateFormat::resolve
implementation to avoid creating any temporary template representation (rather builds the result on-the-fly).
Release version 1.0.0
Enjoy!