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

The following, however, works just fine:

<tr tal:repeat="item itemList" tal:attributes="item sf/someBooleanVar">

I realise I can do this, to gain access to the variable anyway:

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

But I would like to know the reasoning behind why the variable is not available 
in the tal:condition attribute while it is available in tal:attributes. Is this 
a bug perhaps?

PHPTAL mailing list

Reply via email to