[Zope] Howto test if macro evaluates to nothing

Chris Withers lists at simplistix.co.uk
Wed Mar 10 09:30:24 EST 2004


Florian Schulze wrote:
> I would like to know wether there is a way to test if a macro evaluates 
> to nothing.
> 
> I tried the following:
> <div tal:condition="here/my_macros/macros/macro_name"
>      metal:use-macro="here/my_macros/macros/macro_name">
> </div>
> 
> But the macro returns a tree of lists and tuples.

I thnk you're misusing the macro feature here.
Why does you macro substitution end up in not generating any output in certain 
circumtances?

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk




More information about the Zope mailing list