marvell has asked for the wisdom of the Perl Monks concerning the following question:
I image it's pretty standard to want to encode entitles in all variables and subroutine returns in a data structure. I have no HTML in my variables, so want to filter all of them. However, I don't want to have to wrap each variable call in the template with a FILTER call in the template, since that looks messy.
Is there a good solution to this, or should I prefilter all variables in my data structure with my fave eoncoding module? What about subroutines?
Your assistance is greatly appreciated in this matter.
--
Steve Marvell
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Template Toolkit filtering all variables
by merlyn (Sage) on Oct 13, 2005 at 10:46 UTC | |
by holli (Abbot) on Oct 13, 2005 at 11:51 UTC | |
by merlyn (Sage) on Oct 13, 2005 at 11:54 UTC | |
by marvell (Pilgrim) on Oct 13, 2005 at 11:58 UTC | |
by merlyn (Sage) on Oct 13, 2005 at 12:02 UTC | |
by marvell (Pilgrim) on Oct 13, 2005 at 12:08 UTC |