SV: [ZPT] Yuk! Someone please improve on this...

Phil Harris phil.harris@zope.co.uk
10 Sep 2001 15:20:16 -0400


better than my last:

<td tal:content="item/title | '&nbsp;'"/>

Phil

On 10 Sep 2001 16:07:30 +0200, Magnus Heino (Rivermen) wrote:
> 
> 
> > > Can someone help me turn:
> > > 
> > > <td><dtml-var title null="&nbsp;"></td>
> > > 
> > > ...into ZPT?
> > 
> > This works:
> > 
> >   <td tal:define="title item/title"
> >       tal:content="structure python:title or '&nbsp;'">Title</td>
> > 
> > ...but I feel a bit sick now.
> > 
> > Can anyone suggest something nicer or should I start sleeping 
> > with my sister?
> 
> <td tal:content="python:item.title or default">&nbsp;</td>
> 
> /Magnus
> 
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://lists.zope.org/mailman/listinfo/zpt