[Grok-dev] Acquiring macros

Lennart Regebro regebro at gmail.com
Thu Apr 26 05:20:49 EDT 2007

On 4/26/07, Christian Theune <ct at gocept.com> wrote:
> I wondered that the problem of defining and accessing standard layout
> elements (e.g. macros in PT) didn't show up in the discussion yet. I
> skimmed through the last weeks of discussions but didn't see anything.

It was up before, and I think we ended up calling that "theming".
Martijn wrote an excellent document on it, and I promised to try and
implement that, but I didn't. :-(

> The existing pattern in Zope 3 is to define a view derived from the
> StandardMacros class that provides aliasing and tries to look up a macro
> from an existing view a bit disturbing from the point that you have to
> register your templates as views and also make them available for all
> objects. This sounds weird.

Yup. It also restricts you to using ZPTs, and requires all grok
templates to include standard macros. Which they don't at the moment.

> I wonder whether we can do better.

I think we can, by paradigm-shifting. :-)

Here is Martijns mail:

Lennart Regebro: Zope and Plone consulting.
+33 661 58 14 64

More information about the Grok-dev mailing list