[Zope] DTML vs ZTP
Jaroslav Lukesh
lukesh at seznam.cz
Tue Dec 14 20:15:34 EST 2004
Dne pondělí, 13. prosince 2004 17:45 Florent Guillaume napsal(a):
>
> Well there's always a way to hack it in using structure, like in:
>
> <table>
> <tr>
> <tal:block repeat="item mydatalist">
> <td tal:content="item/title_or_id">Title</td>
> <div tal:condition="python:repeat['item'].index % 4 == 3"
> tal:replace="structure string:</tr><tr>" />
> </tal:block>
> </tr>
> </table>
nice piece, but it broke main idea of ZPT - separation design from logic. BFU
designer could easily broke that code.
--
Jaroslav Lukesh
-----------------------------------------------------------
This e-mail can not contain any viruses because I use Linux
More information about the Zope
mailing list