[Templates] Processing templates from variables

Andy Wardley abw@wardley.org
Tue, 07 Aug 2007 14:52:28 +0100


Pronichev Alexander wrote:
> I've found the answer to the second question:
> $tt->context()->define_block('NAME', $template_content);

And the answer to the first question is here:

   http://tt2.org/docs/manual/Filters.html#section_eval_evaltt

e.g.

   [% text | eval %]

Cheers
A