Erubis-J Users' Guide

4   Appendix

4-1   Command-Line Options

Usage: java erubis.Main [...options...] [file1 file2...]

Options:

-h
Help message.
-v
Version.
-x
Show converted code.
-e
Escape expression by default.
-b
Body only: don't print preamble nor postamble.
-t
Expand tab characters in *.yaml file.
-f datafile
Context data file (*.yaml, *.json, *.js).
-k encoding
File encoding (UTF8, EUC-JP, Shift_JIS, ...).
-l language
Language name (js, c, java).
-d d1,d2,...
Decorators.
-g filter
Post-filter script (*.js or *.ejs).

Properties:

--pattern=pattern
Embedded pattern (default '<% %>').
--escapefunc=name
Escape function name (default '_escape')
--java2js=false
Don't convert Java object to JavaScript object
--pi[=name]
Use Processing Instruction pattern (default 'js').
--embchar=char
Use char as expression pattern characer (default is '@').
--pi2[=name]
Use another Processing Instruction pattern (default 'js').
--embchars=ch1,ch2
Use ch1 and ch2 as expression pattern characters (default is '#,$').