RE: FTL Includes
"Andy Zeneski" <[email protected]> Thu, 27 Feb 2003 16:41:40 -0500
| Newsgroups | gmane.comp.java.jpublish.devel |
|---|---|
| Message-ID | <[email protected]> |
Indeed, always live on the edge.. :) I saw the message on the FM list. Looking forward to Jonathan's reply. -Andy > -----Original Message----- > From: [email protected] > [mailto:[email protected]]On Behalf Of > Anthony Eden > Sent: Thursday, February 27, 2003 4:38 PM > To: [email protected] > Subject: Re: [JPublish-developer] FTL Includes > > > I just sent a message to the FreeMarker list because I am not > sure this is due to JPublish (it may be, but for the moment it > doesn't appear to be). <#include> works fine in JPublish > templates, but it does not work in content. In parsed content > the path being passed to the TemplateLoader is > "repository:fs_repository:/repository:fs_repository:/test.html". > > (Isn't it fun being on the bleeding edge?) > > -Anthony > > Andy Zeneski wrote: > > <#include "repository:fs_repository:/includes/countries.ftl"> > > ${fs_repository.get("/includes/countries.ftl")} > > > > These should return the same thing, I believe. But they do not. > The first > > returns empty, the second returns a list of countries. > > > > Will this have anything to do with my custom 'root' in Freemarker? > > > > -Andy > > > > > >>-----Original Message----- > >>From: [email protected] > >>[mailto:[email protected]]On Behalf Of > >>Anthony Eden > >>Sent: Thursday, February 27, 2003 3:55 PM > >>To: [email protected] > >>Subject: Re: [JPublish-developer] FTL Includes > >> > >> > >>Try: > >> > >><#include repository:fs_repository:/order/orderheader.ftl"> > >> > >>I have not yet put in the default lookup mechanism which is why > >>the first version didn't work. > >> > >>-Anthony > >> > >>Andy Zeneski wrote: > >> > >>>Anthony, > >>> > >>>How do we use FTL includes now? I tried this: > >>><#include "/order/orderheader.ftl"> > >>>and this: > >>><#include "fs_repository:/order/orderheader.ftl"> > >>> > >>>But no luck with either. > >>> > >>>-Andy > >>> > >>> > >>> > >>>------------------------------------------------------- > >>>This sf.net email is sponsored by:ThinkGeek > >>>Welcome to geek heaven. > >>>http://thinkgeek.com/sf > >>>_______________________________________________ > >>>Jpublish-developer mailing list > >>>[email protected] > >>>https://lists.sourceforge.net/lists/listinfo/jpublish-developer > >> > >> > >> > >>------------------------------------------------------- > >>This sf.net email is sponsored by:ThinkGeek > >>Welcome to geek heaven. > >>http://thinkgeek.com/sf > >>_______________________________________________ > >>Jpublish-developer mailing list > >>[email protected] > >>https://lists.sourceforge.net/lists/listinfo/jpublish-developer > >> > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Jpublish-developer mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jpublish-developer > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf