On 05.04.2009, at 07:42, romtek wrote:

<li tal:repeat="item ads"><a tal:attributes="href php:item['url']" tal:content="php:item['title']"></a></li>

I get the following as the content of the anchor element: title="test ad 1".

Is this a bug?

Yes and no :)

It's unfortunate side-effect of support for printing SimpleXML objects. I've tweaked it in the latest PHPTAL version and attributes should now be printed as expected. Old weird behaviour will happen only when you add structure keyword.

Unfortunalely it can't be 100% fixed, because SimpleXML gives no sensible way of telling elements and attributes apart.

--
regards, Kornel




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

Reply via email to