[Grok-dev] Re: RFC: Making the automatic registration of templates more explicit

Martijn Faassen faassen at startifact.com
Sat Feb 3 14:31:40 EST 2007

ct at gocept.com wrote:
> Sorry for catching up so late. I'm trying to remember everything that
> popped up in my mind while reading this thread.
> 1. I like grok.template('asdf') on a module level in opposition to
> "consume all templates".

Actually we should consider symmetry here, and since we already have:

foo = grok.PageTemplate('somethingorother')

we could also introduce:

bar = grok.PageTemplateFile('somefile') # without extension

this would be a lot more symmetrical than a new toplevel directive.

> 1a. To shorten this spelling we could allow grok.template('a', 'b', 'c',
> ...).

I think it's actually easier to read if it weren't shortened. It's not 
like we tend to have *that* many different templates even in very 
complicated applications.



More information about the Grok-dev mailing list