return template;
}
public static Template parseFile(final String filename, final TemplateTextWriter templateTextWriter, final Namespaces namespaces, final Classes classes, final GroovyClassLoader groovyClassLoader) {
final FileSource sourceFile = new FileSource(filename);
TemplateParser parser = new TemplateParser(new ITemplateFactoryFactory() {
public ITemplateFactory getFactory(int phase) {
return new TemplateFactory(sourceFile, templateTextWriter, namespaces, classes, groovyClassLoader);
}