Re: How does one analyse a FreeMarker template??
Tom Fennelly <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks Daniel. I was going to try avoid having to create a new parser with javacc by trying to extract the info manually from the getNodeName and getDescription methods... i.e.... a total hack. After a little investigation, I think it might be a hack too far, so I think I'll go back again and look at creating a new parser :) Thanks for the help!! T. Daniel Dekany wrote: > 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. >> > > ------------------------------------------------------------------------------ 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