[Grok-dev] Re: first thoughts on "regebro-guido-templates"

Lennart Regebro regebro at gmail.com
Tue Oct 30 09:49:28 EDT 2007

On 10/30/07, Brandon Craig Rhodes <brandon at rhodesmill.org> wrote:
> It would be nice if people adding new templates to Grok - let's call
> them "template pluggers" for short - it would be nice if template
> pluggers did not have to repeat open().read() if they don't have to.

Now I actually think you are being silly. Besides:

> Plus, do we know for sure that all template engines want bare strings?

We know for sure they do not. Genshi doesn't for example. It has
sepcial template loaders that want the filename.

> We would, if this plan is followed through, then adjust the
> "*_templates" directory scanning mechanism so that it just called
> __init__ with (path=...) instead of doing the file opening and reading
> itself.

Which is what it already does. Although it's filename and prefix (the folder).

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

More information about the Grok-dev mailing list