variable substitution problem
Rajeev Prasad <rp.neuli-/[email protected]> Fri, 31 Jan 2014 13:15:48 -0800 (PST)
| Newsgroups | gmane.comp.lang.perl.modules.template-toolkit |
|---|---|
| Message-ID | <[email protected]> |
hello, my template is getting variable: userLevel this is then used to call a document like this:-> [% INCLUDE mainmenu.$userLevel %] or like this: [% INCLUDE mainmenu.[% userLevel %] %] but it is not working. userLevel can be 'guest', tier1, tier2 etc. so i want to load mainmenu.guest, mainmenu.tier1 etc.... pl advice. I looked up on tt website, and tried various ways, but not working :( ty. Rajeev _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates