[Zope] Re: ZPT: using variables to reference variables

Chris Withers chrisw@nipltd.com
Sat, 03 May 2003 16:16:59 +0100


Evan Simpson wrote:
> It is possible with both.  In a ZPT:
> 
> <div tal:define="myvar python:14;
>                  a string:myvar;
>                  b python:path(a)">
> 

...or:

<div tal:define="myvar python:14;
                  a string:myvar;
                  b ?a">

maybe?

will-the-evil-but-cool-undocumented-syntax-work-here-ly yours,

Chris