I created a template file FTL and stored it in a specific folder in Alfresco repository. inside i have a java backed webscript. I want to load the template file into my Java backed webscript to use it to create an XML file.
I use the freemarker API to load the template, i use this method to load this FTL file :
You should not use the FreeMarker API directly. Alfresco provides a TemplateService that you can use to invoke template engines, and by specifying a classpath for an FTL file Alfresco will delegate the execution of the template to the FreeMarker engine internally.