Accessing Zope3 standard macros
The standard macros of Zope 3, which render also the default ZMI pages, are accessible under the view-name standard_macros and usually
provide slots title, headers and body. It is good style to provide this slots with your homegrown views as well.
Macros are a way to define a chunk of presentation in one template,
and share it in others. Changes to the macro are immediately reflected
in all of the places, that share it.
Page
6
of
6.
To give your pages standard Zope3 look, you can do something like this in your page template:
<html metal:use-macro="context/@@standard_macros/page">
<head>
<title metal:fill-slot="title">
Document Title
</title>
<metal:headers fill-slot="headers">
<!-- Additional headers here... -->
</metal:headers>
</head>
<body>
<div metal:fill-slot="body">
Your content here...
</div>
</body>
</html>

