Prabhadon / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

Simplify the use of Freemarker macro #333

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Simplify the use of Freemarker macro with XDocReport : 

1) add FreemarkerTemplateEngine#addTemplateLoader(TemplateLoader lodader) to 
add any Freemarker TemplateLoader (to load custom ftl which hosts the macro).
2) provide a preprocessor to add automaticly the #import (ex : [#import 
'YourMacros.ftl' as my]). But perhaps it's not required, because it can be done 
with 
http://freemarker.org/docs/api/freemarker/template/Configuration.html#addAutoImp
ort(java.lang.String,%20java.lang.String)  

Original issue reported on code.google.com by angelo.z...@gmail.com on 26 Nov 2013 at 11:01

GoogleCodeExporter commented 9 years ago
FreemarkerTemplateEngine#addTemplateLoader(TemplateLoader lodader) was added to 
simplify the add of custom template loader (FileTemplateLoader, etc) for the 
use of macro. See git commit at 
https://code.google.com/p/xdocreport/source/detail?r=c6098b0eb98d3782e65c9fa5e2e
4764cef997dd3

Original comment by angelo.z...@gmail.com on 26 Nov 2013 at 11:05

GoogleCodeExporter commented 9 years ago

Original comment by angelo.z...@gmail.com on 18 Feb 2014 at 11:08