Re: Nesting TMPL tags

"Mark A. Fuller" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <12931114.1121176045165.JavaMail.root@wamui-rubis.atl.sa.earthlink.net>
From: Philip Tellis <[email protected]>
>> I want to TMPL_INCLUDE files, the problem is that the file I want to
>> include itself is variable. I want a construct of the sort
>>
>> <TMPL_INCLUDE NAME="<TMPL_VAR NAME=file_name>">
>
> ...  What you want is to use a filter that
>preprocesses your template.  Change your template to something like
>this:
>
><TMPL_INCLUDE NAME="%file_name%">

Or, organize your included templates into directories that can be referenced with the "path =>" parameter to the "new" method. Something like:

path => [ '/path/to/templates',
               '/' . $include . '/path' ]

Mark


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.