[Grok-dev] Re: Neanderthal sprint topics

Brandon Craig Rhodes brandon at rhodesmill.org
Wed Oct 3 14:58:08 EDT 2007


Martijn pointed out:

> I think in certain settings being very strict and explicit about
> what enters your page templates ("push") makes sense.  This way your
> template can only reach information prepared by the programmers and
> the template developer will never be confronted with weird errors
> coming from deep in the system...

Ah, that makes sense!  We don't have separate template developers so
it was hard for me to think out how things could go wrong.

Tres Seaver <tseaver at palladion.com> writes:

> Testability (of the view) and maintainability (of the template) goes
> up in push mode, too.  What if the "compromise" is to add a base
> class whose namespace generator pushes the traditional TAL bindings;
> people who want to use those names from Genshi templates can then
> derive from that class, while those who want "purer" push can use
> the base (whose 'namespace' method might just raise
> NotImplementedError).

I assume you mean the base-of-the-base? :-)

+1

-- 
Brandon Craig Rhodes   brandon at rhodesmill.org   http://rhodesmill.org/brandon


More information about the Grok-dev mailing list