Mirror of Apache Velocity Engine

Clone this repo:
  1. 86cfcf4 [VELOCITY-977] Upgrade Java Compiler Compiler to Version 7.0.13 by Sylwester Lachiewicz · 2 months ago master
  2. d015400 Change primitive constructor calls to more modern equivalents. by Éamonn McManus · 9 weeks ago
  3. 12c3cd3 [maven-release-plugin] prepare for next development iteration by Michael Osipov · 10 weeks ago
  4. 3987078 [maven-release-plugin] prepare release 2.4.1 by Michael Osipov · 10 weeks ago
  5. fe2cda3 [VELOCITY-976] Remove obsolete VelTools66TestCase by Michael Osipov · 2 months 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 Spring framework
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 merge some templatized jQuery code full of $ characters, you can for instance build you own parser which will use the § character as references prefix instead of $.

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