Re: [Templates] unexpected token

[prev] [thread] [next] [Date index for 2004/10/04]

From: Andy Wardley
Subject: Re: [Templates] unexpected token
Date: 10:54 on 04 Oct 2004
fdsfds fdsfddsf wrote:
> [% output.CD:X.closeTime %]

You can do it like this:

  [% output.${'CD:X'}.closeTime %]

Or use an intermediate variable:

  [% cdx = 'CD:X';
     output.$cdx.closeTime
  %]

HTH
A


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

[Templates] unexpected token
fdsfds fdsfddsf 10:45 on 04 Oct 2004

Re: [Templates] unexpected token
Andy Wardley 10:54 on 04 Oct 2004

Re: [Templates] unexpected token
Jamie Echlin 10:56 on 04 Oct 2004

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