Hello,

I am wondering if it is possible to put a TT directive into a variable
that is passed to the template and have TT process that directive
(rather than print it).

So, something like this:

### in perl file:
$tt_object = Template->new( INTERPOLATE => 1);
$vars = { include => "[% INCLUDE include.tt %]" };
$tt_object->process("main.tt", $vars);

### main.tt
$include
blah blah blah

### inlude.tt
This is included

And the output would be:

This is included
blah blah blah

rather than:

[% INCLUDE include.tt %]
blah blah blah

thanks for any input or suggestions,
kristina

### my gpg key can be found here:
http://www.klerp.net/gpgkey

Attachment: msg03858/pgp00000.pgp
Description: PGP signature

Reply via email to