Hubbry Logo
search
logo

Apache Velocity

logo
Community Hub0 Subscribers
Write something...
Be the first to start a discussion here.
Be the first to start a discussion here.
See all
Apache Velocity

Apache Velocity first released in April 2001, is a Java-based template engine that provides a template language to reference objects defined in Java code. It aims to ensure clean separation between the presentation tier and business tiers in a Web application (the model–view–controller design pattern).

Velocity is an open source software project hosted by the Apache Software Foundation. It is released under the Apache License. Jon Scott Stevens derived the name from the AltiVec Velocity Engine in the PowerPC G4 chip.

Some common types of applications that use Velocity are:

The following template:

processed by Velocity produces the following HTML:

Another example using conditions:

AWS API Gateway body mapping template, for DynamoDB HTTP:

Another example with optional array; without condition will fail because of invalid resulting JSON:

See all
User Avatar
No comments yet.