I am using TT from perl and trying to insert into a template and process a variable that itself contains TT directives.
So, in a script, I write smth like:
$var{descr} = "[% pid = 1; INSERT plink.par %]";
And then in the TT template (which \% var got):
[% BLOCK parsedDescr %] [% descr %] [% END %] <p>[% INCLUDE parsedDescr %]
And I expect the pid variable to be set to "1", and the plink.par file is inserted. But instead, I get on my html page the exact contents of the descr variable:
[% pid = 1; INSERT plink.par %]
ie, this variable remains raw on TT.
How to make a TT process its contents?
source share