[Zope3-dev] Re: Applying site-wide look-and-feel (Was Re: )

Paul Everitt paul at zope-europe.org
Fri Nov 12 02:30:20 EST 2004


Paul Winkler wrote:
> On Wed, Nov 10, 2004 at 10:24:20AM -0500, Jim Fulton wrote:
> 
>>Paul Everitt wrote:
>>
>>>ZPT was built to address this role, but the advent of pluggable 
>>>presentation systems like CMF and Zope 3 introduced into templates lots 
>>>of stuff that (IMO) made templates too heavy for casual involvement by 
>>>the web designer.
>>
>>I mostly agree with this. I do think in many cases, ZPT's
>>get too complicated through lack of discipline on the part of
>>programmers.  In restrospect, I wish we hadn't icluded Python
>>expressions in ZPT.
> 
> 
> Not sure how relevant it is to this discussion, but...
> have you looked at Nevow?
> http://www.divmod.org/Home/Projects/Nevow/
> (just the template language, not talking about the other
> neat stuff like Stan, Formless, Webform, or LivePage.)
> 
> The template language is an attribute language but is
> almost featureless compared to TAL/TALES/METAL.
> E.g. 
> 	<span nevow:render="foo" />
> 
> ...will invoke a method of the class named render_foo(data, context).
> The python class declares which template it will use, not the
> other way around.
> 
> AFAICT there are only 4 attributes:
> nevow:render, nevow:data, nevow:pattern, and nevow:slot,
> and they only accept string identifiers as values.
> 
> I haven't played with it much and don't really grok it yet
> but it has a certain minimalistic appeal.

The TASSL proposal from Casey Duncan and Evan Simpson many moons ago is 
even more simplistic.  You move substition instructions completely out 
of the HTML and into a CSS file.  This idea of leveraging HTML class/id 
specifiers is what led me to thinking about merging.

--Paul



More information about the Zope3-dev mailing list