public final class TemplateParser extends Object
Modifier and Type | Field and Description |
---|---|
static String |
d_remove_all_emptylines
The name of the ("remove-all-emptylines") directive
|
static String |
d_remove_initial_emptylines
The name of the ("remove-initial-whitespace") directive
|
Constructor and Description |
---|
TemplateParser(File input,
File output,
String classname,
Log log)
Creates a new page parser.
|
public static String d_remove_initial_emptylines
public static String d_remove_all_emptylines
public TemplateParser(File input, File output, String classname, Log log) throws IOException
contextRoot
- absolute path to the webapp context root directoryinput
- absolute path to the input page fileoutput
- absolute path to the output file (to be written to).classname
- classname to give to the generated java class.IOException
public void parse() throws IOException
IOException
- a parse failure occurred. The java source file
may or may not be properly generated or written
in this case.public static void main(String[] args) throws IOException
IOException