[Grok-dev] Accessing a METAL template from another template
daniel
daniel.carraher at gmail.com
Mon Jan 14 18:15:11 EST 2008
i think you want this?
http://grok.zope.org/minitutorials/macros.html
On Jan 14, 2008 12:57 PM, Sebastian Ware <sebastian at urbantalk.se> wrote:
> I am trying to do something like this:
>
> http://www.zopelabs.com/cookbook/1053557445
>
> Mvh Sebastian
>
> 14 jan 2008 kl. 18.53 skrev Sebastian Ware:
>
> > How would I define my template class and then what would the metal
> > expression look like if I wanted to access a master template from a
> > second macro template (that in turn was called by the original page
> > template).
> >
> >
> > class Master(grok.View):
> > grok.context(Interface)
> >
> >
> > metal:use-macro=""
> >
> > I can't use [context/@@master/admin_template] since the template
> > doesn't have a context object defined.
> >
> > Mvh Sebastian
> > _______________________________________________
> > Grok-dev mailing list
> > Grok-dev at zope.org
> > http://mail.zope.org/mailman/listinfo/grok-dev
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev
>
--
-- Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20080114/51c6db1d/attachment.htm
More information about the Grok-dev
mailing list