[ZPT] allow duplicate defines?

Guido van Rossum guido@digicool.com
Mon, 25 Jun 2001 13:57:41 -0400


> Would it be bad xml to allow multiple tal:define's in a tag?

Yes.

> If so, how about tal:define[1]="" ?

You can define multiple variables separated by a semicolon:

  <p tal:define="a string:hello; global b string:world"/>

To have a semicolon as part of the data, double it:

  <p tal:define="a string:hello;;world">

--Guido van Rossum (home page: http://www.python.org/~guido/)