[Zope3-dev] <script> - the anti-pattern
Paul Winkler
pw_lists at slinkp.com
Wed Sep 10 12:58:30 EDT 2003
On Wed, Sep 10, 2003 at 08:37:30AM -0400, Phillip J. Eby wrote:
> For what it's worth, there exists a templating approach that makes it
> *impossible* to put code into templates, but still makes it possible to
> create arbitrary dynamic content in an extensible way. There are three
> different Python systems that use this approach: PSO, twisted.web.woven,
> and peak.web.templates. Essentially, in all three approaches, a special
> attribute of an XML/XHTML tag specifies a factory for a Python object that
> will be responsible for rendering the contents of that tag.
>
> Thus, the visual designer is limited to expressing only concepts that are
> made available by the author of the Python objects.
(snip)
What does the invocation of a factory buy you?
How is this better than <foo tal:content="container/bit_of_code"></foo> ?
--
Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's THE APPREHENSIVE DJ!
(random hero from isometric.spaceninja.com)
More information about the Zope3-dev
mailing list