Version 1.6 of the Apache Velocity Java Templating Engine is released
Version 1.6 of the Apache Velocity Java template-processing engine, which is compatible with earlier versions, is now available. This lightweight template-processing library is suitable for developing dynamic web sites and running other text-generating tasks.
The new version features significant revisions to memory usage and speed. It contains many small parser bugfixes, while the template/line/column
information has been corrected and standardized. One new feature is that JDK 1.5 vararg methods can be invoked with variable arguments in the tools used.
There are also three new directives: #evaluate
takes a single string containing VTL (Velocity Template Language) as an argument and renders it; #define
can be regarded as a "cousin" of #macro
: it defines an unrendered block of VTL as a reference that the body of the directive returns and that is then calculated if the reference is used; finally, #break
enables an early exit from a #foreach
loop. More details about the new release are contained in the project change log. Apache Velocity is licensed under the Apache Licence 2.0.
(lghp)