The way I've solved similar problems is to load two seperate HTML::Template objects. Instead of the <TMPL_INCLUDE>, it's instead a <TMPL_VAR> that is filled in with the data from another HTML::Template object. Not particularly elegant, but it works.
It'd be nice if HTML::Template had something like a switch statement so these things could be dispatched easier, though I suspect the developers would be very hesitant to add one. Code-and-data-are-seperate, and all that.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
In reply to Re: HTML::Template question.
by hardburn
in thread HTML::Template question.
by jdtoronto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |