[PHPTAL] AGAIN : tal:attributes - semicolon bug? -> I think so
Nestor A. Diaz
nestor at tiendalinux.com
Mon Apr 14 12:02:09 CEST 2008
Hello, i have the same bug/problem when dealing with semicolons in
tal:attributes.
Does anybody can provide some hints on how to fix it ?
Thanks.
Mynthon wrote:
> 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.
>
--
Nestor A. Diaz
Ingeniero de Sistemas
Tel. +57 1-600-5490 x 211
Cel. +57 316-227-3593
Tel. SIP: sip:211 at tiendalinux.com
Email/MSN: nestor at tiendalinux.com
http://www.tiendalinux.com/
Bogota, Colombia
More information about the PHPTAL
mailing list