[PHPTAL] tal:attributes - semicolon bug?

Mynthon mynthon1 at gmail.com
Tue May 22 12:06:34 CEST 2007


first. This is fragment from manual and it really should be corrected:

"A somewhat complicated example involving tal:repeat :
<tr tal:repeat="ranking playerRankings"
    tal:attribute="class php: repeat.ranking.odd ? 'odd' : false">
    ...
</tr>"

"tal:attribute" to "tal:attributes"

2nd:
if i use ; (semicolon) in tal:attributes i get php error. If i use ;;
(two semicolons) i dont get error but i have two semicolons in output
code. Sample of use semocilons:

<td
	tal:repeat="data person"
	tal:content="data"
	tal:attributes="style php: repeat.person.odd ? 'background: #eee;' : false"
/>

i know that inline style isn't a good idea, but i think it should be corrected.

-- 
mynthon
http://www.mynthon.net



More information about the PHPTAL mailing list