[ZPT] Re: DTML/ZPT examples

Lalo Martins lalo@hackandroll.org
Mon, 28 May 2001 16:57:37 -0300


On Mon, May 28, 2001 at 10:06:10AM +0200, Peter Bengtsson wrote:
> 
> Cool!
> That's great. I was hoping that the community could help me with that page.

Well, I'd write your example2 as:
<H4>
<span tal:replace="template/title" 
        tal:condition="python:not len(result)"/>
<span tal:replace="string:Untitled"
        tal:condition="python:len(result)"/>
</H4>


[]s,
                                               |alo
                                               +----
--
           I say a prayer now our love's departed
                That you'll come back to stay
                  Bring back the perfect day

http://www.laranja.org/                mailto:lalo@laranja.org
         pgp key: http://www.laranja.org/pessoal/pgp

Brazil of Darkness (RPG)      ---       http://www.BroDar.org/