AW: AW: [Zope3-dev] use-macro in ZPTPage
Roger ineichen
dev at projekt01.ch
Mon Mar 8 14:34:55 EST 2004
> Jim Fulton wrote:
> Roger ineichen wrote:
> > Jim Fulton wrote:
> >
> >>Roger Ineichen wrote:
> >>
> >>>Is it possible to call use-macro in a ZPTPage (Page
> >>>Template content type)? The global "views" isn't accessible.
> >>>How can I call use-macro
> >>>like the example below?
> >>>
> >>><html metal:use-macro="views/standard_macros/page">
> >>
> >>Don't use "views". It is deprecared. Where did you
> >>find out about it?
> >
> >>Use container:
> >>
> >> metal:use-macro="container/@@standard_macros/page
> >
> >
> > This doesn't work, I get the following error message
> > in the textarea output if I use:
> > <html metal:use-macro="container/@@standard_macros/page">
> > ---
> > <!-- Page Template Diagnostics
> > Macro expansion failed
> > exceptions.KeyError: 'container'
> > -->
> > <html metal:use-macro="container/@@standard_macros/page">
> > <body>
> > <div metal:fill-slot="body">
> > write this in the body slot.
> > </div>
> > </body>
> > </html>
> > ---
>
> This is a bug. Please submit a collector entry.
I submit the bug under the iusse:
http://collector.zope.org/Zope3-dev/199
Thanks,
Roger
More information about the Zope3-dev
mailing list