[FMPP] Using FMPP Output Tags separately
Brought to you by:
ddekany
From: alebu <al...@gm...> - 2009-12-07 16:08:18
|
Hi all, I need some guidelines about FMPP API. I am interested in collecting data for FMPP engine using my own code. In general, I only interested in those wanderfull tags, that allows to create multiple outputs from single template. The questions are: 1) What objects are responsible for actual generation part of code? 2) How to configure them ? I was looking at code and I saw that TemplateEnvironment has some tags definitions, and Engine is using it somehow. 3) How to specify to search templates in classpath (it is important for me). Also, if templates uses some macros and additional includes, then it must be specified too. It is probably more Freemarker question, but still... In few words, i want to write a code that: 1) Takes some data (as freemarker content) 2) Instanciate FMPP Engine, configures it to use those tags and search templates and other Freemarker specific resources in classpath. 3) Processes data. Here I need to correctly handle output. Or maybe it is worth to somehow move those fmpp specific tags into freemarker environment? In this case, how can it be done? General overview of solution will be fine for me, just point me please on the right directions (classes, execution chain, etc). Thanks in advance! |