usage of Dataloaders in non-fmpp Java programs

Thomas Bayen <[email protected]> Sun, 25 Jun 2006 20:25:30 +0200
Newsgroups gmane.comp.text.fmpp
Message-ID <[email protected]>
Hello,

I wrote a nice template set to create a big static website from some 
CSV-Files. But now I need to create some of the pages dynamically, so I will 
have to use Tomcat, write a web container and call FMPP (or Freemarker?) 
directly.

As I see it is not easy to access the loaded data from within Java. I can't 
just simply say "load the configuration data into this hash", deal with the 
data in Java and say "use this hash with FMPP and create my output".

The Dataloaders (especially the CsvDataLoader) returns a TemplateModel. Would 
it not be nicer if it returns a simple Java-"Map"? FreeMarker would wrap it 
and work as before. What would happen if we try to change CsvSequence to be a 
Map?

Your very nice configuration Syntax (tdd, reading of csv, ...) would not 
depend on FreeMarker. I could think of many uses of this nice Dataloaders 
apart from FreeMarker.

Ciao,

Thomas Bayen
Linux User Group Krefeld

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642