velocity-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claude Brisson <>
Subject [ANNOUCE] Apache Velocity Engine 2.1 Released
Date Sun, 31 Mar 2019 19:20:23 GMT
The Apache Velocity community is pleased to announce the release of 
Apache Velocity Engine 2.1. The release is available for download at:

Apache Velocity is well-known in the Java field as a lightweight, 
easy-to-use templating library for creating dynamic web sites and 
performing other text-generation tasks. It relies on the Velocity 
Template Language (VTL) which is aimed at ease-of-use and simplicity.

Main changes in this release:

+ New VTL syntax: alternate reference values: ${foo|'foo'} evaluates to 
'foo' whenever boolean evaluation of $foo is false.

+ New VTL syntax: Default block for empty loops: #foreach($i in 
$collection) ... #else nothing to display #end

+ Two more Engine 1.7 backward compatibility flags, 
parser.allow_hyphen_in_identifier and velocimacro.arguments.literal

+ Velocity Engine 2.1 now requires Java 1.8+.

For a full list of changes, consult the Velocity Engine 2.1 Changes section:

as well as the JIRA changelog:

For notes on upgrading, see Velocity Engine 2.1 Upgrading section:


   the Apache Velocity team.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message