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

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


-----BEGIN PGP SIGNED MESSAGE-----
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.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHCp0L+gerLs4ltQ4RAogYAKDBqL+zUKFK4IxlEZ+qwex5+UVz6wCdGLVr
9SpI+G84UeR8S+qnbAOTf8E=
=16+n
-----END PGP SIGNATURE-----



More information about the Grok-dev mailing list