Affects Version/s: None
Fix Version/s: None
Number of attachments :
The way in which FreeMarkerTemplateEngine.generate(..) setup the Template will not allows including another Template, as in:
The proper way to do this is to create a org.freemarker.template.Configuration and get the template via the configuration instance;
config = new Configuration();
Template template = config.getTemplate(templateName + ".ftl");
I have attached a MultiLoaderFTLEngine which does it as shown above together an assocaited test case. In additional, it is possible to specify/override the default TemplateLoader. This make it possible for user to provide their own templates, overiding those in the orginal plugin.