Using FMPP Output Tags separately

alebu <[email protected]> Mon, 7 Dec 2009 18:08:02 +0200
Newsgroups gmane.comp.text.fmpp
Message-ID <[email protected]>
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!

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev