petesmiley has asked for the wisdom of the Perl Monks concerning the following question:
Hey all,
I have a problem I'm kind of stuck on. I'm using Template Toolkit to process some config files and I'm trying to figure out how to turn interpolation on or off for different blocks.
Is there a way to do this? There's only about 100 pages of docs for Template Toolkit, and I haven't had much luck figuring this one out.
smiles
Edit: To clear up any questions.
When I'm talking about blocks I'm talking about template blocks. Things that start with
in the template.[% BLOCK blockname %]
When I talk about interpolation, I'm talking about the INTERPOLATE => 1 option whenever I create the template object.
I want it off when I do a
for some and on for others.[% PROCESS blockname %]
Is this even possible?
|
---|
Replies are listed 'Best First'. | |
---|---|
•Re: Template Toolkit and Config Options
by merlyn (Sage) on Apr 29, 2004 at 23:45 UTC | |
by petesmiley (Friar) on Apr 30, 2004 at 15:53 UTC | |
Re: Template Toolkit and Config Options
by perrin (Chancellor) on Apr 29, 2004 at 21:56 UTC |
Back to
Seekers of Perl Wisdom