Re: [Templates] Embedding tags within tags

[prev] [thread] [next] [Date index for 2004/11/11]

From: Dave Cross
Subject: Re: [Templates] Embedding tags within tags
Date: 06:35 on 11 Nov 2004
On Wed, Nov 10, 2004 at 08:18:50PM -0500, Robert Hicks wrote:
> Can I put a value in my variables (say value => 'name') where that name is a
> lib that is called depending on a switch statement?
> 
> [% INCLUDE [% value %] %]
> 
> Then that value would be be changed to the lib name I want to include and
> then it would be parsed. I am guessing that would be a double pass and not
> work but I am away from my dev box to try it.

Try

  [% INCLUDE $value %]

Dave...

        -- 
          If you miss an opportunity to see him perform... you're a total asshole.
  David Cross rocks my world.
    -- Jack Black

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] Embedding tags within tags
Robert Hicks 01:18 on 11 Nov 2004

Re: [Templates] Embedding tags within tags
Dave Cross 06:35 on 11 Nov 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52