[ZPT] Different METAL
Peter Bengtsson
mail@peterbe.com
Sun, 23 Dec 2001 17:00:38 +0100
Cheers!
I will remember this.
http://www.zope.org/Members/peterbe/DTML2ZPT/examples/example19/view
On Saturday 22 December 2001 23:35, Dieter Maurer wrote:
> 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