processing a macro from a Freemarker user-defined directive
Rebecca Younes <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <C9004422.AA1%[email protected]> |
Hello, I am trying to write a Freemarker directive in Java that will process a macro in a template, rather than the entire template. Is there a way to do this? I can see how to get the macro using Template.getMacros(), but I do not see a method of Macro that would allow me to process that. The Freemarker/Velocity comparison at http://freemarker.sourceforge.net/fmVsVel.html states: You can capture the output of an arbitrary part of the template into a context variable. You can interpret arbitrary context variable as if it were a template definition. This sounds like what I am trying to do, but I don't see how to do it. Thanks. Rebecca Younes ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ FreeMarker-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freemarker-user