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

Magnus Heino (Rivermen) magnus.heino@rivermen.se
Mon, 10 Sep 2001 16:07:30 +0200


> > 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