[Templates] Processing variables as templates

Randal L. Schwartz merlyn@stonehenge.com
21 Sep 2002 09:58:33 -0700


>>>>> "Gernot" == Gernot Homma <homma@cat.at> writes:

Gernot> hello,
Gernot> is there a possibility to evaluate a variable that contains some
Gernot> tt2-directives inside a template ? 

Yes, see Template::Manual::Filters:

        [% x FILTER eval %]

But you really don't want to do that on a regular basis.  Much better
to put x someplace where it can get compiled, and suck that in
instead.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!