[Zope3-Users] Using macros dynamically
srichter at cosmos.phy.tufts.edu
Mon Sep 4 18:29:08 EDT 2006
On Monday 04 September 2006 03:17, Karel Antonio Verdecia Ortiz wrote:
> I have seen tha in plone, I can call a macro dynamically:
> <div metal:use-macro="python:path(macro_path)" />
> Is there someone who can tell me the correct way to do this in zope3?
First of all, don't use macros that much.
We have the zope.contentprovider and zope.viewlet package that provides a lot
more flexibility and is much more Zope-3-ish. I think some people have
written tutorials how to use it effectively.
As a side note: I believe that anyone who builds Zope 3 applications without
using those two packages is fool and makes his life much harder than it could
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope3-users