dragonchild has asked for the wisdom of the Perl Monks concerning the following question:
Stuff here <TMPL_INCLUDE NAME="<TMPL_VAR NAME="DYNAMIC_INCLUDE">"> Stuff here
That doesn't work. I read the code, so I know why it doesn't work. I wanted to do it because I have a reports page that displays the report in the bottom half, should there be a report chosen. And, I found a work-around, but I was hoping to see if anyone has a better option.
Problem: When you pass as a scalarref, you also need to pass the directory where your other templates are, otherwise your static <TMPL_INCLUDE>s don't work.
As a sidenote, how would this be handled in TT?
------
We are the carpenters and bricklayers of the Information Age.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML::Template .... misfeature?
by LTjake (Prior) on Dec 11, 2003 at 14:46 UTC | |
|
Re: HTML::Template .... misfeature?
by !1 (Hermit) on Dec 11, 2003 at 15:45 UTC | |
|
Re: HTML::Template .... misfeature?
by cees (Curate) on Dec 11, 2003 at 15:52 UTC | |
|
Re: HTML::Template .... misfeature?
by jdtoronto (Prior) on Dec 11, 2003 at 18:00 UTC | |
|
Re: HTML::Template .... misfeature?
by perrin (Chancellor) on Dec 11, 2003 at 18:43 UTC |