From: "Harald Joerg" <harald.jo...@ts.fujitsu.com> Octavian Râşniţă <orasn...@gmail.com> writes:
> I have a template in which I need to evaluate a variable which is taken > from > the database like: > > ... > <div>[% page_body %]</div> > ... > > But page_body is a TT template containing a string like: > > <p><a href="[% c.uri_for('/path/to/file') %]">[% c.localize('Label for > this > link') %]</a></p> > ... > > Is it possible to interpret somehow page_body variable to be processed > like > a template? You are looking for TTs eval filter: <http://www.tt2.org/docs/manual/Filters.html#section_eval_evaltt> <div>[% page_body | eval %]</div> -- Cheers, haj Oh thanks! I was searching on CPAN after Template and Eval but I couldn't find anything there. Octavian _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates