Mirror of Apache Velocity Engine

Clone this repo:
  1. 34f4143 Start 2.6-SNAPSHOT (reset <scm><tag>=HEAD) by Claude Brisson · 5 days ago master
  2. 9acf548 Release 2.5: set versions to 2.5 and <scm><tag>=2.5 by Claude Brisson · 5 days ago 2.5-RC3
  3. 445eb16 Update 2.5 release date for RC3 by Claude Brisson · 6 days ago
  4. f48c856 VELOCITY-1004 - Fix consistency of macro calls lookups under velocimacro.inline.local_scope by Claude Brisson · 6 days ago
  5. bded05d Release script should check release date in changelog by Claude Brisson · 6 days ago

Title: Apache Velocity Engine

Apache Velocity

Welcome to Apache Velocity Engine! Apache Velocity is a general purpose template engine written in Java. For more information about Velocity, please look at the HTML documentation on the Velocity web site.

Here's a description of the top level directories:

velocity-engine-core/       The Velocity Engine core module
velocity-engine-examples/   Several simple examples
velocity-engine-scripting/  JSR-223 implementation for Velocity scripting
spring-velocity-support     Velocity Engine factory bean for current Spring (6.x/7.x, Java 17)
spring5-velocity-support    Velocity Engine factory bean for legacy Spring 5.x (Java 8)
src/                        Source for parent modules, mainly changelog

Apache Velocity requires at least Java 8 to run.

CUSTOMIZING THE PARSER

It is possible to build a custom parser, to change some of the characters used by the VTL syntax: *, @ and #.

Let's say you want to generate Markdown, where # starts a heading: you can for instance build your own parser which will use the % character as directives prefix instead of #.

The $ character can also be changed, but this is deprecated since 2.5: the next major version does not allow it.

TRYING THE EXAMPLES

After building Velocity, you can also build the examples that are included with the Velocity distribution. These examples show how to use Velocity in your Java applications.

For more information, please see the examples README in the velocity-engine-examples directory.


  • The Apache Velocity Team