Velocity:
Velocity is a Java-based template engine. It permits web page designers to reference methods defined in Java code. Web designers can work in parallel with Java programmers to develop web sites according to the Model-View-Controller (MVC) model, meaning that web page designers can focus solely on creating a well-designed site, and programmers can focus solely on writing top-notch code. Velocity separates Java code from the web pages, making the web site more maintainable over the long run and providing a viable alternative to Java Server Pages (JSPs) or PHP.
Velocity can be used to generate web pages, SQL, PostScript and other output from templates. It can be used either as a standalone utility for generating source code and reports, or as an integrated component of other systems.
Based on the version 1.4 of the source code of Velocity, Denali modified the code in order to enable the following features:
Automatically suppress leading spaces before directives so that we can indent them without having to worry about formatting.
We reduced the quantity of extra-space removed by Velocity so that formatting can be respected.
We removed the protection that prevented templates to be loaded out of the current user directory (also known as running directory) so that the end-user can choose any file in its file system.
Click here for downloading the version modified by Agile Birds.
Sylvain Guerin