Velocity - Migration To Velocity

About Overview Getting Started Download Install Design Contributors ChangeLog Coding Standards License TODO Report Issues Community Powered By Velocity Get Involved Mailing Lists CVS Repositories Docs User's Guide (English) User's Guide (Finnish) User's Guide (French) User's Guide (Spanish) Developer's Guide VTL Reference Guide Specification Javadoc Tools Velocity Tools Anakia : XML->doc tool Texen : text generation DVSL : XML xformation Veltag : JSP taglib Migration to Velocity Editors and IDEs Comparisons YMTD VM/WM Differences JSP vs. Velocity XMLC vs. Velocity Site Translations English Japanese |
Converting Templates
Legacy documents are the bane of any software migration. The Velocity Team has tried to ensure that existing templates can be converted for use within Velocity in as painless a manner as possible. Currently there is only a WebMacro to Velocity template converter, but there are plans for a Tea to Velocity template converter, and a FreeMarker to Velocity template converter.
WebMacro to Velocity Template Converter
> The `convert-wm.sh` script in the `convert` directory converts a single WebMacro template (`*.wm`) to a Velocity template (`*.vm`), or converts an entire directory structure of WebMacro templates to Velocity templates. The `convert-wm.sh` script can convert a single WebMacro template to a Velocity template.
>     ./convert-wm.sh template.wm
> This will produce a single Velocity template named `template.vm` from the WebMacro template `template.wm`. The original WebMacro template will be preserved. To convert an entire directory structure of WebMacro templates using the `convert-wm.sh` script, simply include the directory name instead of the template name, as indicated below.
>     ./convert-wm.sh templates
This will produce a directory structure of templates named `templates/[template].vm`. The original WebMacro templates will be preserved during the conversion process.
Copyright © 1999-2004, The Apache Software Foundation