Re: Turn interpolation on and off within template?

Johan Vromans <[email protected]> Sun, 24 Apr 2016 20:38:21 +0200
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Organization Squirrel Consultancy
Message-ID <[email protected]>
On Sun, 24 Apr 2016 12:28:12 -0600
Sherwood Botsford <[email protected]> wrote:

> I'm expanding tt2 for my .htaccess files.  In those I need to use $base
> for my error document, but tt2 is borking on my rewrite rules, which, of
> course use regexes.
> 
> How do I interpolate $base then turn off interpolation?

Switch variable interpolation off with INTERPOLATE, and use
[% base %] to interpolate the base variable.