[ZPT] repeat / replace|content combination
richard@bizarsoftware.com.au
richard@bizarsoftware.com.au
Wed, 11 Apr 2001 10:50:11 +1000
[As with some of my earlier feature requests, this one may stem from my
highly-DTML'ised mindset. I probably just need to think in a more
TAL-oriented manner...]
I've found a few times now that I'd really like to:
<tr class="altline" tal:repeat="l here/someList" tal:content="structure
l/tableRow">
<td>dummy</td>
<td>row</td>
<td>data</td>
</tr>
Where the tel:repeat repeats the tag, but tal:content generates the
content.
The closest I can come up with in TAL at the moment is:
<tr class="altline" tal:repeat="l here/someList">
<td colspan=3 tal:replace="structure l/tableRow">
</tr>
... which doesn't give me the opportunity to accurately indicate cell
contents to the Page Designer.
Another solution, which is invalid HTML AFAIK:
<tr class="altline" tal:repeat="l here/someList">
<div tal:replace="structure l/tableRow">
<td>dummy</td>
<td>row</td>
<td>data</td>
</div>
</tr>
Thoughts?
Richard
--
Richard Jones
richard@bizarsoftware.com.au
Senior Software Developer, Bizar Software (www.bizarsoftware.com.au)