Re: Print the current template
"Zemian Deng" <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
I just had this need in my project as well, but there is nothing stopping you just simply insert he filename as data model into the template. For example I just do a dir read of .ftl found, and for each file, add the value into your data model. See http://faxintelligence.com:8081/sweet-sample-basic/webapp/quickview/indexfor examples. -Zemian On Tue, Aug 5, 2008 at 7:57 AM, Ista Pouss <[email protected]> wrote: > It's not vital. If I'm alone... > > Thanks for your answer. > > > 2008/8/5 Attila Szegedi <[email protected]>: > > Hm... That isn't currently possible. I wonder whether we could just > > define a new built-in variable, .template_name ? > > > > Attila. > > > > On Aug 5, 2008, at 1:37 PM, Ista Pouss wrote: > > > >> Hi, > >> > >> How is it possible to print the current template ? > >> > >> For exemple, in the template foo.ftl, the text "This is > >> ${templateNow}" print "This is foo.ftl". > >> > >> Thanks. > > > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > FreeMarker-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/freemarker-user > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > FreeMarker-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/freemarker-user > -- Sweet - a Scala web framework: http://code.google.com/p/sweetscala ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ FreeMarker-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freemarker-user