Re: is it possible to use var in include

Mark Stosberg <mark-WmyhgDpj2fCHT8/[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
On 2005-09-28, [email protected] <[email protected]> wrote:
> Dies ist eine mehrteilige Nachricht im MIME-Format.
> --=_alternative 004DED9DC125708A_=
> Content-Type: text/plain; charset="US-ASCII"
>
> Hello all,
>
> Is that not possible? <TMPL_INCLUDE NAME=<TMPL_VAR NAME=mod>>
> Cause depending in which mode I open the template I want to show up a 
> differnt body (e.g. start page, register page, search page...)

This is supported in HTML::Template::Compiled as:

 <TMPL_INCLUDE VAR="mod">

However, I can only say that from reading the docs. I haven't used the module
yet myself and can't directly vouch for it.

    Mark



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
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.