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

Evan Simpson evan@4-am.com
Fri, 05 Nov 1999 14:59:01 +0000


Christopher Petrilli wrote:

>     &dtml.missing-foo;
>
> renders to '' when missing.

Great stuff!  Would it make sense to other folks (it does to me) to make
dtml-entities default to missing as well as html_quote?  I can't recall a
situation yet where I really wanted my page to choke because a variable was
missing <wink>.

Now that I think about it, perhaps there ought to be a (global? per-request?)
way of choosing a set of default formats for dtml-entities.  Maybe check for a
tokens-type property (or list-of-strings request variable)
DTML_ENTITY_FORMATS?

Cheers,

Evan @ 4-am