[ZPT] Different METAL

Dieter Maurer dieter@handshake.de
Sat, 22 Dec 2001 23:35:43 +0100


Peter Bengtsson writes:
 > In DTML I would do something simple like this:
 > 
 > -- in standard_html_header --
 > <dtml-if show_simple>
 >     <dtml-var standard_html_header_simple>
 > <dtml-else>
 >     <dtml-var standard_html_header_fancy>
 > </dtml-if>
 > 
 > How do you do this with metal in the best way?
Try:

	<XXX metal:use-macro="python: request.show_simple and <simpleMacro> or <complexMacro>">



Dieter