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">
    <tr>
    …

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

--
regards, Kornel

_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to