[ZPT] ZPT usage implementation issue
Tom Deprez
Tom Deprez" <tom.deprez@uz.kuleuven.ac.be
Wed, 13 Mar 2002 18:25:38 +0100
Hi,
I wonder how most people use ZPT. The following 2 syntaxes give the same
result, but which is the best to use?
<td tal:content="structure python:field.render()"></td>
<td> <span tal:replace="structure python:field.render()">item value</span>
</td>
The first is easier to read, but the second should have the benefit that if
the designer want to change from a table to a list and does this with his
design tool, the code is still there. In the first obvious not, because when
he replaces the <td> tags with <li> tags the tal attribute will be
removed...
So, which syntax do you use?
Tom.