|
Notes on Apache Velocity
Russell Bateman
April 2016
last update:
|
Apache Velocity Javadoc is
here. Here's
a quick-start demo
with full code resources, input- and output sample.
Terminology
(To be corrected as needed.)
- conditionals, prefixed with #, affect the desired output from
the template engine.
- data, key-value pairs, etc. that are consumed by a merge to render the
template into the desired output from the template engine.
- directives, prefixed with #, for generating dynamic content
manipulating the desired output.
- loops, prefixed with #, affect the desired output from the
template engine.
- merge, operation merging the data put to the template into the template.
- template, the text interspersed with variables to be the output of
the template engine.
- variables, prefixed with $, made replacement pronouns in the
template.