Re: Question about 'eval'

Dan Washusen <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Never mind, I just noticed 'interpret'. It's now working as expected... :)
On Friday, 20 May 2011 at 12:24 PM, Dan Washusen wrote: 
> Hi, 
> I'm trying to provide an FTL template String in the model and then evaluate it in the template file. The doco seems to suggest I can use "?eval" to accomplish this but it doesn't seem to work.
> 
> For example;
> - I add "testing 123 ${hello}" to the model under the name "template"
> - I add "foobar" to the modal under the name "hello"
> - I then attempt to process a FM file with the following content:
> > <#include "TemplateHeader.fm">
> > ${template?eval}
> > <#include "TemplateFooter.fm">
> 
> The following error is raised:
> >  freemarker.core.ParseException: Encountered "123" at line 2, column 12 in ...
> 
> 
> Anyone have any ideas what I'm doing wrong?
> 
> Cheers,
> Dan 
> 
> 
>

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.