[Zope] The XML-dtml notation "&dtml-variable;"

Christopher Petrilli petrilli@digicool.com
Thu, 04 Nov 1999 16:03:21 -0500


On 11/4/99 2:39 PM, Johan Carlsson at johanc@torped.se wrote:

>> 
>> Would something like this be more palatable?
>> 
>> <dtml-var foo default="Empty">
> 
> It would definitely be a start.

I just checked in a change to the <dtml-var> tag that allows the following:

    <dtml-var foo missing>

renders to: ''  when foo is missing
   
    <dtml-var foo missing="x">

renders to "x" when foo is missing.

And allows teh entity reference syntax to work:

    &dtml.missing-foo;

renders to '' when missing.

This should fix most of what we've been seeing and people have been
complaining about :-)

Chris
-- 
| Christopher Petrilli        Python Powered        Digital Creations, Inc.
| petrilli@digicool.com                             http://www.digicool.com