[Zope] Zope Patterns
Mark McEahern
mark at mceahern.com
Thu Jan 15 08:31:39 EST 2004
On Thu, 2004-01-15 at 06:52, Douwe Osinga wrote:
> Hi Zopers,
>
> I have a musing about how Zope sites are set-up which I would like to share
> and would very much like comments on.
>
> Typically, a web page has a header, a body and a footer. In most Zope
> instances, this is translated into standard_html_header,
> standard_html_footer, while an index_html calls these and does something
> interesting in between.
>
> I don't like this setup too much, because it explicitly repeats the calling
> of standard_html_* for every page. If you want to add a parameter to for
> example standard_html_header (say the css to use or similar), you'll have to
> change all pages (yes, you can use default parameters, but that is not the
> point).
[snip]
Have you looked at using Page Templates? Typically, that you define a
master template with a content slot. You then merely use the master
macro and fill the content slot. Later, if you decide to spruce up each
page with new gizmos, you do that all in master.
Cheers,
// m
More information about the Zope
mailing list