Pathologically Eclectic Rubbish Lister | |
PerlMonks |
automatic Template component wrapperby marvell (Pilgrim) |
on Mar 10, 2006 at 15:52 UTC ( [id://535732]=perlquestion: print w/replies, xml ) | Need Help?? |
marvell has asked for the wisdom of the Perl Monks concerning the following question: Gracious monks ... I use Template::Toolkit and make great use of the INCLUDE dirctive. My designer has asked me to wrap each component with a comment so he can see how the end pages have been constructed. I can give him a wrapper for each component like this:
Of course, I can use WRAPPER and pass these variables through to the commenting wrapper, but that is more text and still requires and END a the end of the template. In an ideal world, I'd have a flag in my config to turn this on and off, which is easy, but is there a way I can may TT wrap all my components automagically?
--
Back to
Seekers of Perl Wisdom
|
|