[Web-SIG] Pure Python HTML?

Eric Radman theman at eradman.com
Wed Apr 13 03:11:45 CEST 2005


On 12:22 Tue 12 Apr     , Bill Janssen wrote:
> > The minimal Zope 3 code is a page template and a few lines of ZCML in a 
> > Python package with an empty __init__.py to hook up a new view to an 
> > existing object (say, a folder). There's no Python code *at all*
> 
> From my point of view, that's the problem.  I don't want to write in
> some cumbersome and buggy XML format (which is what I'm guessing ZCML
> is) when I could be writing clean Python code.

I don't know about you, but generating HTML with pure Python code can be
messy--ONE reason why we introduce templateing languages in the first
place. Often (not always) the best way to end up with XHTML is to start
with a valid or almost-valid XML document and then infuse the dynamic
content.

-- 
Eric Radman  |  http://eradman.com


More information about the Web-SIG mailing list