[Grok-dev] Re: Template pluggability and megrok.genshi finished.

Tres Seaver tseaver at palladion.com
Mon Oct 8 17:11:39 EDT 2007

Hash: SHA1

Martijn Faassen wrote:
> Lennart Regebro wrote:
> [snip]
>> megrok.genshi, Genshi templates in Grok:
>> ------------------------------------------------------
>> http://svn.zope.org/megrok.genshi/trunk/
>> After feedback on the list, we now have no way of traversing from
>> inside a template. I agree on the principle, but suspect it's going to
>> be unwieldy, so maybe a "traverse" method or similar could be an idea.
>> Maybe we should start using it first and see. Maybe not. :-)
> I think we should end up with two versions of the Genshi integration:
> * the unwieldy, strictly controlled version where nothing is in the 
> namespace except exactly what people pass in from their view. As far as 
> I understand it, we have the infrastructure to build this now.
> * the "wieldy" one, where we *definitely* should pass in the 'path' 
> function (as known from ZPT) into the Genshi template.
> Since we're working on the "wieldy" version first, I think we *should* 
> pass in 'path' (and call it that way).

Your terms imply an obvious loading:  how about "well-factored" vs.
"wild west" as alternatives?  Examples of the mess which which
pull-model templates organically grow are not exactly hard to find in
ZPT land.

Nevertheless, for *Grok*, the restrictions of push mode may be
inappropriate.  Much of Grok's charm comes from its facilities for "solo
mode" development (saving typing is one of Grok's key memes).  In such
an environment, as opposed to multi-person, separation-
of-responsibilities kind of projects, the advantages of push-mode are
considerably less attractive.

- --
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


More information about the Grok-dev mailing list