dynamic <tmpl_include>

"Kapoor, Nishikant" <[email protected]> Fri, 2 Nov 2007 07:50:50 -0500
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <B4448B75FF74124ABB5793D8BFBEEA3906CFE675@exccpgo04.corp.xcelenergy.com>
Hello all,

I have a need to include a template based on a certain condition i.e., I would like to be able to do

            <tmpl_include "<tmpl_var myDir>/my.tmpl">

where I can set myDir. Browsing the archives suggests that this functionality is presently not available. Since there is a long list of possible values that myDir can assume, <tmpl_if><tmpl_else> is not a feasible option.

Any suggestions?

Thanks,
Nishi

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/