Comment 4 for bug 394011

Revision history for this message
Edwin Grubbs (edwin-grubbs) wrote : Re: [Bug 394011] [NEW] enable the use string: ${foo | nothing} to avoid a KeyError

On Wed, Jul 1, 2009 at 3:29 AM, Malthe<email address hidden> wrote:
> The second part should ideally be left out entirely, if not defined.
> Perhaps:
>
> <span tal:attributes="string:${some_class}
> ${string:contenttype-${maybe_some_content_type} | nothing}">...</span>
>
> could work?

I think that is a nice solution to provide full evaluation of the
expression inside of ${}.

-Edwin