Velocity

Velocity is a Java-based template framework which provides the default HTML rending engine for Click. Velocity is very easy to learn, simple to use, and is also very capable.

Velocity is an open source Apache project licensed using the Apache Software License.

Velocity's comprehensive online documentation is included in this distribution.

 

Object References

With Click you add objects to your page template using the Page's model. You can then access these objects using Velocities $ reference notation. By default the ClickServlet adds the following objects to page templates: In your page templates you can access object references using a dot path notation. For example:
Welcome: $session.user.fullName
Or by using a more explicit Java notation:
Welcome: $session.get("user").getFullName()

Directives

In Velocity directives are prefixed by a # symbol. While references access stuff, directives do stuff. The full set of Velocity directives are: