<?xml version="1.0" encoding="windows-1252"?>
<node id="1003918" title="Re: Partially process'ing Template::Toolkit templates" created="2012-11-14 21:28:35" updated="2012-11-14 21:28:35">
<type id="11">
note</type>
<author id="533863">
roboticus</author>
<data>
<field name="doctext">
&lt;p&gt;[unlinker]:&lt;/p&gt;
&lt;p&gt;I can think of a couple ways to get that result: First, you could put the other parts of your template in a different include file, and INSERT them.  Since TT isn't going to do any processing on the inserted files, you will then have a template that you want.&lt;/p&gt;
&lt;c&gt;
----file1----
Hi [% name %],

some text here...
----file2----
Some more text here...
----template----
[% INSERT file1 %]
[% INCLUDE inner.tt %]
[% INSERT file2 %]
&lt;/c&gt;
&lt;p&gt;Alternatively, you could escape out the template sequences in your main template, then when TT processes it, you'd have the template instructions ready.&lt;/p&gt;
&lt;p&gt;It seems odd that you would need that, though.  But I've never used it, so it wouldn't be obvious to me in any case.&lt;/p&gt; 
&lt;p&gt;...[roboticus]&lt;/p&gt;
&lt;p&gt;&lt;i&gt;When your only tool is a hammer, all problems look like your thumb.&lt;/i&gt;&lt;/p&gt;</field>
<field name="root_node">
1003912</field>
<field name="parent_node">
1003912</field>
</data>
</node>
