Re: including other FTL-template through model
aldana <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Daniel Dekany wrote: > > Thursday, February 5, 2009, 3:19:59 PM, aldana wrote: >> >> Hi, >> >> usually to include other FTL I need to use <#include> directive. For >> special >> dynamic inclusion though I would like to do this directly through the >> backing Model java-class. >> >> Is this possible in freemarker? (e.g. Tapestry5 supports building up page >> both in template file and java-type) > > Certainly it's possible. > > Where do the source code of those dynamically included templates come > from? When is it decided what their source code will be? > > (a) [...] <#include theTemplateName>, where theTemplateName is a variable > in the > data-model. > > Thanks, I already went for the (a) option (great that #include directive offers string expression), so it seems that freemarker first replaces the variables and text strings and after that goes to process the directives and macros. ----- manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/including-other-FTL-template-through-model-tp21852239p21862575.html Sent from the freemarker-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com