kiat has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying out something like the following to include a file dynamically using HTML::Template:
That doesn't seem to work. There's no problem if the name of the include file is hardcoded:<tmpl_include name="<tmpl_var name=file>.inc">
But is there a way to feed the name of the include file to tmpl_include?<tmpl_include name="news.inc">
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: question on tmpl_include
by matija (Priest) on Mar 01, 2004 at 12:09 UTC | |
|
Re: question on tmpl_include
by ViceRaid (Chaplain) on Mar 01, 2004 at 12:17 UTC | |
|
Re: question on tmpl_include
by Crian (Curate) on Mar 01, 2004 at 11:51 UTC | |
by Crian (Curate) on Mar 01, 2004 at 12:15 UTC | |
|
Re: question on tmpl_include
by eric256 (Parson) on Mar 01, 2004 at 16:27 UTC |