Johan Carlsson [EasyPublisher] wrote:
Hi, How do one ascieve the equivilent to:
<dtml-in getRecords> ... <dtml-else> Nothing in getRecords </dtml-if>
Using conditions produce over complicated markup, which I would like to avoid.
<div tal:define="records python:here.getRecords()"> <div tal:condition="records" tal:repeat="record records"> ... </div> <div tal:condition="not:records"> Nothing in getRecords </div> </div>
I guess the answer is no, but I hope there is a smarter way to do this.
AFAIK this is not possible yet, but it will probably come, i have no idea when. I wondered about this some weeks ago, also, here are my notes about it: http://openspirit.homelinux.net/noowiki/zope/Condition Greetings, Florian -- Florian Konnertz --- http://www.florian-konnertz.de http://openspirit.homelinux.net/noowiki/FrontPage Improved ZWiki about all topics, especially consciousness research and wisdom traditions