Zope vs Php
godoy at ieee.org
Fri Nov 18 04:41:46 CET 2005
Mike Meyer <mwm at mired.org> writes:
> Jorge Godoy <godoy at ieee.org> writes:
> > Mike Meyer <mwm at mired.org> writes:
> >> That said, I have to confess that lately I've been using Cheetah
> >> templates, because the syntax for inserting values is simpler, and the
> >> way Cheetah templates work naturally in the Python inheritance
> >> hierarchy.
> > KID is also nice and can be used as he wants and in a cleaner way as well. ;-)
> Since you didn't provide a URL, and KID is a pretty generic term to
> google for, I'll just ask:
> One of the things I really like about Cheetah - at least compared to
> other templating systems I've looked at - is that it's fully
> cooperative with the Python inheritance sydstem. A cheetah template
> can inherit from a python class, or a cheetah template, and a Python
> class can inherit from a cheetah template. This brings the full power
> of OO programming facilities to the templating system, and is simply
> blows away other templating systems, or trying to build that kind of
> flexibilty using "pure python". Does KID have have that kind of
I am beginning with it, but it does have it. You can "extend" from templates
and use classes and methods inside your code as well. I'm using Kid with
Apache (mod_python) and with CherryPy.
> While I'm at it - how does KID do for things that aren't HTML?
> Cheetah integrates with web servers, but can be used to generate
> nearly anything. I've found that using Cheetah scripts to build
> Makefiles that run Cheetah scripts to build a dynamically determinedj
> set of pages to be pretty handy.
Kid is for XML output. It won't work with non-HTML output...
> And finally - got a URL?
Be seeing you,
Jorge Godoy <godoy at ieee.org>
More information about the Python-list