Well... It is not a problem per se. In my case, I will just leave INTERPOLATE off for everything. I am processing some rather meaty looking apache config files. Some parts for easy editing, others not. Having INTERPOLATE was a matter of convenience.

I thought leaving INTERPOLATE on would be fine at first except for an occasional spurious mixing of regexes for redirects and such. So, when I run the templates I'll get errors for things like having a $2 mixed into the template text. I would just escape this out by doing something like [%'$2'%] but this would make it more confusing for the template maintainers than just leaving INTERPOLATE off.

I don't really have time for anything more complex than this. I did notice that the template tags could be changed for individual BLOCKS by using the TAGS directive in the template. Being a curious fellow, I figured I'd see if there was anything similar for INTERPOLATE that I had missed.

I suppose there isn't though.

smiles


In reply to Re: •Re: Template Toolkit and Config Options by petesmiley
in thread Template Toolkit and Config Options by petesmiley

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.