[Zope3-dev] Re: Macro vs. Pagelet

Tonico Strasser contact_tonico at yahoo.de
Mon Dec 13 16:20:05 EST 2004


Jean-Marc Orliaguet wrote:

> RENDERERS
> render the page elements (HTML renderer, XML, ESI) and the Style elements

Interesting, I'd rather try to render the whole page instead of 
individual elements. I've written a pseudo page renderer with Python 
scripts in Z2 (don't laugh, I'm not an application developer).

Here an example of a view:

---
page = container.Page()

names_ud = container.names_for_this_page()
macros_ud = {'content_body': ('template_name', 'macro_name')}

page['updateNames'](names_ud)
page['updateMacros'](macros_ud)

return page['render']()
---

Tonico



More information about the Zope3-dev mailing list