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.
convert ディレクトリにある
convert-wm.sh スクリプトは、
単一の WebMacro テンプレート (*.wm) を
Velocity テンプレート(*.vm)に変換したり、
WebMacro テンプレートのディレクトリ構造をまるごと
Velocity テンプレートに変換します。
The convert-wm.sh script can convert a single WebMacro
template to a Velocity template.
convert-wm.sh スクリプトは、単一の WebMacro テンプレートを Velocity テンプレートに変換します。
 |
 |
 |
 |
./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.
これで、
template.wm という名前の WebMacro テンプレートから
単一の template.vm という名前の Velocity テンプレート
が生成されます。元の WebMacro テンプレートはそのまま残ります。
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.
WebMacro テンプレートのディレクトリ構造を丸ごと変換するには、
convert-wm.sh スクリプトを使用して、
単純にテンプレート名の替わりにディレクトリ名を以下のように指定します。
 |
 |
 |
 |
./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.
これで、templates/[template].vm
という名前のテンプレートのディレクトリ構造が生成されます。
変換時には、元の WebMacro テンプレートはそのまま残ります。