Re: How does one analyse a FreeMarker template??
Jonathan Revusky <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Nov 11, 2009 at 5:15 PM, Daniel Dekany <[email protected]> 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...) Well, I would encourage Tom to use the 2.4 preview that is available. That, after all, is why one uses a preview or beta version of software, isn't it? That the bleeding edge stuff has features that you need that are lacking in the stable version. In any case, one can continue to use 2.3.15 in production to render templates, but use the 2.4 for the software that analyzes templates, no? JR > >> 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 > _______________________________________________ > FreeMarker-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/freemarker-user > ------------------------------------------------------------------------------ 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