hello, you can use the 'eval' filter so in your main.tt you have the following directive:
[% include | eval %] geetings gernot -----Urspr�ngliche Nachricht----- Von: k.clair [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 03. Februar 2003 16:22 An: [EMAIL PROTECTED] Betreff: [Templates] inserting directives during template processing? 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 _______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.ourshack.com/mailman/listinfo/templates
