Hello,

I want the 'href' attribute to be skipped if $item['route'] is empty:

<a tal:content="php:tm._(item['title'])" tal:attributes="href
php:ro.gen(item['route'])"/>

the manual says attributes can be skipped with " | nothing", but this
is based on the attribute's value.


Thanks!

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

Reply via email to