Re: dynamic <tmpl_include>
Sven Neuhaus <[email protected]> Fri, 02 Nov 2007 13:58:54 +0100
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Message-ID | <[email protected]> |
Kapoor, Nishikant schrieb: > 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? Change your code to open the other template and paste its output into the template with a simple TMPL_VAR. -Sven ------------------------------------------------------------------------- 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/