[ZPT] 'default' in 'metal:use-macro'

Dieter Maurer dieter at handshake.de
Sat Jun 25 02:31:00 EDT 2005


Tonico Strasser wrote at 2005-6-24 14:11 +0200:
>is this expected to raise an exception?:
>
><div metal:use-macro="x|default">
>   <div metal:use-macro="y">
>     I'm not macro y.
>   </div>
></div>
>
>'x' and 'y' are not defined.

If both "x" and "y" are not defined, it is correct to get
an exception for a missing "y".


Did you look carefully at the full exception information (to be
found in the "error_log" object)?

Always do this when you see an exception (and include it in
questions send to this list).


-- 
Dieter


More information about the ZPT mailing list