public Template(Reader reader) throws IOException
{
try
{
// TODO decide if there is a better buffer size
Lexer lexer = new Lexer(new PushbackReader(reader, 1024));
Parser parser = new Parser(lexer);
templateAST = parser.parse();
}
catch (ParserException e)
{