[Zope] Page Templates are great, but...
Barry Pederson
barryp@medicine.nodak.edu
Sun, 02 Jun 2002 00:51:52 -0500
Stuart Bishop wrote:
> <dtml-var standard_html_header>
> <dtml-var "banner_ad('car_ad')">
> My content
> </dtml-var standard_html_footer>
>
> becomes
>
> <html metal:use-macro="here/standard_template.pt/macros/page>
> <body>
> <div tal:replace="python: here.banner_ad('car_ad')">Banner Ad</div>
> <div metal:fill-slot="body">
> My content
> </div>
> </body>
> </html>
I think those 2 <div> tags in the ZPT example need to be switched, so
the banner add div is inside the fill-slot div, since that's part of the
content you want inserted into the standard template.
Barry