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

Martijn Faassen faassen at startifact.com
Wed Jan 31 11:05:50 EST 2007


Hey,

I somehow missed your first post in this thread, so I only saw Philipp's 
reply.

Kevin Smith wrote:
[snip]
> I think Grok would benefit from more template choices, Zope's marriage 
> to ZPT is dangerous and possibly deadly for a project like Grok. 
> Developers like choices, even in php/asp land they have lots of 
> choices.  To do so means template neutrality and perhaps supporting an 
> open template api like Buffet. http://projects.dowski.com/projects/buffet

Buffet is unfortunately tied to CherryPy (though there's a fork being 
used by Pylons). It will definitely be instructive to investigate how 
Buffet works, but there is, as far as I can see, also quite a different 
between the way Zope 3 views are associated and the way it works in 
CherryPy.

Anyway, supporting alternative templating languages is important of my 
list of things I want to do with Grok. The basic idea is that template 
languages would be recognized by extension. There are several basic 
issues we need to work out like template reuse - ZPT uses macros but 
something like Genshi uses another strategy. We have various fundamental 
questions to answer about this still.

I'd like to focus on supporting Genshi first and see where that brings 
us. Unless we'll manage to reuse Buffet somehow, we'll likely slowly 
evolve a framework for template plugins.

Regards,

Martijn



More information about the Grok-dev mailing list