Skip to content

Releases: yetamine/net.yetamine.template

Release version 1.4.0

27 Sep 19:53
RELEASE/1.4.0
Compare
Choose a tag to compare

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

27 Sep 19:50
RELEASE/1.3.0
Compare
Choose a tag to compare

A significant update with a lot of improvements and new features:

  • TemplateRecursion brings a flexible recursion-capable resolver.
  • TemplateDefinition was introduced to couple TemplateFormat with a Template where both is needed at once.
  • TemplateTesting was deprecated in favour of Source, 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

27 Sep 19:49
RELEASE/1.2.0
Compare
Choose a tag to compare

A small extension to support better unescapable formats, which allows using Interpolation without any escaping sequence as well.

Release version 1.1.0

27 Sep 19:48
RELEASE/1.1.0
Compare
Choose a tag to compare

A few minor additions:

  • Added TemplateResolvingException and TemplateSyntaxException to support the usual problems in a well-documented way. Not used actually by the standard implementation (class Interpolation) 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

27 Sep 19:47
RELEASE/1.0.0
Compare
Choose a tag to compare