[Grok-dev] Sharing a common template layout?

Christian Theune ct at gocept.com
Fri Jan 19 02:24:55 EST 2007


Hi,

Am Donnerstag, den 18.01.2007, 09:33 +0100 schrieb Jan-Wijbrand Kolman:
> > Is there a Grok way to share a common template layout?
> 
> One thing you can do is to use the grok.templatedir(...) directive on
> a module level. So say you have a module 'bar.py' and a template
> directory called 'foo' with and 'index.pt' in it, in bar.py you can
> say:
> 
> import grok
> grok.templatedir('foo')

That has unwanted side-effects IMHO. This will make *all* templates of
foo and bar available from a shared space. This has the same drawbacks
as templates in the skin mechanism in CMF.

Christian

-- 
gocept gmbh & co. kg - forsterstraße 29 - 06112 halle/saale - germany
www.gocept.com - ct at gocept.com - phone +49 345 122 9889 7 -
fax +49 345 122 9889 1 - zope and plone consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://mail.zope.org/pipermail/grok-dev/attachments/20070119/c7f4b99f/attachment.bin


More information about the Grok-dev mailing list