5 Nov
2002
5 Nov
'02
8:01 p.m.
Clemens Robbenhaar writes:
... "tal:condition" is evaluated before "tal:replace" (see Zope Book, Appendix C, ZPT Reference), thus You should be able to save at least one <span> by saying:
<span tal:condition="python: this_object is not None" tal:replace="python: this_object.getSomethingBig() " /> You can also use
<span tal:replace="python: this_object and this_object.getSomethingBig()" /> Dieter