On 10-12-2009 at 14:32:58 Bas <kooy...@hotmail.com> wrote:

If I create the following construct in a template PHPTal will throw an error,
saying that the variable item cannot be found:

<tr tal:repeat="item itemList" tal:condition="not:item/someBooleanVar">

tal:condition is evaluated before tal:repeat. In XML order of attributes in the source code doesn't matter, so TAL has to have hardcoded order. TAL "sees":

<tal:block tal:condition="not:item/someBooleanVar">
  <tal:block tal:repeat="item itemList">

Which results in condition accessing variable which doesn't exist yet.

regards, Kornel

PHPTAL mailing list

Reply via email to