[ZPT] Mini proposal: repeat-define and repeat-condition
Richard Jones
rjones@ekit-inc.com
Sun, 26 Jan 2003 08:06:18 +1100
On Sat, 25 Jan 2003 3:16 am, Fernando Martins wrote:
> Shane Hathaway wrote:
> > > > <tr tal:define="items here/getItems"
> > > > tal:condition="options/itemize"
> > > > tal:repeat="item items"
> > > > tal:repeat-define="name item/name;price item/price"
> > > > tal:repeat-condition="python:name and price">
>
> Wouldn't it be good enough to do
>
> <tr tal:define="items here/getItems"
> tal:condition="options/itemize"
> tal:repeat="item items @
> name item/name; price item/price @
> python:name and price">
>
> i.e., expand the grammar of tal:repeat to include any number of variable
> definitions and a last condition.
I believe this grammar is no good due to ambiguity of using the semicolon.
Richard