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.