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

Evan Simpson evan@zope.com
Mon, 10 Sep 2001 11:45:41 -0400


Ron Bickers wrote:

> I think this will cover the bases:
> 
>   <td tal:content="python:path('item/title') or default">&nbsp;</td>
> 
> However, I hate using 'default' like this because then I can't put a sample
> title there.

This isn't really better aesthetically, but it's more "accurate", and 
lets you use a placeholder:

<td tal:content="python:path('item/title') or default">
   <span tal:replace="structure string:&nbsp;">My Title</span>
</td>

Cheers,

Evan @ Zope