Re: How does one analyse a FreeMarker template??
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Wednesday, November 11, 2009, 12:14:25 AM, Tom Fennelly wrote: > Hi. > > I would like to be able to analyse a FreeMarker template. I thought I > had the answer when I saw I could access the root TemplateElement > through the Template instance, but alas, when I look closer (at > IteratorBlock, DollarVariable etc) I see that the info I'd like access > to on these objects is private, with no getter methods etc. > > Is there another way I can go about this? There isn't... except, of course, that you copy the relevant parts of the project, creating your own parser for this purpose. The license allows that. (FM 2.4 will have much better API for this kind of thing, as you can see in 2.4preview-1 release, but it's a question if there will be a 2.4-final ever...) > Regards, > > Tom. -- Best regards, Daniel Dekany ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july