Re: variable substitution problem

Sean McAfee <[email protected]> Fri, 31 Jan 2014 13:27:28 -0800
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <CANan03a3qsX-=YV19btjuP2QdTg8sJzWN9OugNoRZn7bBXiUvA@mail.gmail.com>
On Fri, Jan 31, 2014 at 1:15 PM, Rajeev Prasad <rp.neuli-/[email protected]> wrote:

> hello,
>
> my template is getting variable:   userLevel
>
> this is then used to call a document like this:->
>
> [% INCLUDE mainmenu.$userLevel %]
>
>
Just put quotes around the entire template name:

[% INCLUDE "mainmenu.$userLevel" %]


--Sean

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates