[Grok-dev] Re: Template pluggability and megrok.genshi finished.
Martijn Faassen
faassen at startifact.com
Mon Oct 8 12:25:13 EDT 2007
Lennart Regebro wrote:
> On 10/7/07, Martijn Faassen <faassen at startifact.com> wrote:
>> By the way, it's interesting to observe that Genshi is developed (at
>> least in part) by people at Edgewall, who also develop Trac. To develop
>> Trac, Clearsilver was used, which is a very restrictive (and very fast)
>> template language that is very "push". Genshi, I understood, is in part
>> a response to the limitations of Clearsilver.
>
> Well, in ClearSilver you have attribute access so you don't have to
> push anything more than the objects that you want to render and a
> request object.
I don't think that's correct. With ClearSilver you have to actually set
up a structure (which can have a form of attributes). You cannot
directly access Python objects or their attributes: you really need to
prepare special data structures, much like you need to prepare some form
of XML to do XSLT output.
> If you see that as "limiting", welll. then I guess you
> would like Genshi, who clearly has no limitations at all. I wouldn't
> specifically mind using Genshi if I knew I was the only one to edit
> the templates. But in a situation where I have to work on others
> template code, I'd much rather use something that doesn't let you run
> full unrestricted python in the templates, thanks. :-)
>
> I think we should to ClearSilver integration as well, and also
> Templess integration, mostly to get a good base for the templating
> integration, so we know it works. :-)
Yes, I agree we should try a few integrations. Or do it through Buffet,
or both. :)
Regards,
Martijn
More information about the Grok-dev
mailing list