[Zope3-dev] use-macro in ZPTPage

Jim Fulton jim at zope.com
Sun Mar 7 05:54:58 EST 2004


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

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org




More information about the Zope3-dev mailing list