Skip to content

EscapeVelocity 1.0

Compare
Choose a tag to compare
@eamonnmcmanus eamonnmcmanus released this 28 Dec 22:41
· 36 commits to main since this release

Many changes for greater compatibility with Apache Velocity 1.7.

  • #parse directives now take effect when the containing template is evaluated rather than when it is parsed. That means that the argument no longer has to be a constant string. (f34d95b)
  • An unrecognized #directive is now ignored rather than causing an exception. (a0ae2ba)
  • The $foreach variable, defined in #foreach loops, now supports $foreach.count, $foreach.first, and $foreach.last, in addition to .hasNext and .index which were already supported. (0c7d704)
  • String concatenation with + is now supported. (String interpolation was already supported.) (c6e256a)
  • The words and, or, not can be used as synonyms for &&, ||, ! respectively. (d2c4514)
  • Added support for list and range literals, [1, 2, 3] and [1..100]. (7b2e154)
  • The handling of whitespace before #set is now closer to (and perhaps identical to) Velocity's. (ebf6a94)
  • Null-handling is more like Velocity, in particular with the $!foo syntax. (6e2a874)