velocity2js compiles Apache Velocity templates to JavaScript functions. These functions can be called with an associative array as the input parameter (eg. received via JSON) and generate an HTML snippet as output.

Changes

Support for the "velocityCount" variable was added along with support for internationalization. Generated JavaScript files are now UTF-8. The use of methods in #foreach was fixed. In the Ant task, error messages were improved by linking to the source code in Netbeans, fileset support was added, support for relative paths was added, and the ability to specify the output JavaScript filename was added. Examples were improved.

URL: velocity2js