Zope vs Php

Peter Maas peter.maas at somewhere.com
Thu Nov 17 17:50:49 EST 2005


Steve schrieb:
>>From what I can tell you can't just do
> <%
> #python code
> %>
> <title> some title</title>
> 
> this is what we would like to do with session support and things that
> php provides?

Google for "python web frame works". Most have session support, and
some offer Python Code embedded in HTML (e.g. Webware, mod_python
and Spyce). I never realized what's so great about this because

<%
#python code
%>
<title> some title</title>

and

print output(python-code) + "<title> some title</title>".

are equivalent.

Another approach is using Templates. Most web frameworks have
Templates. My favorite is Cheetah.

-- 
-------------------------------------------------------------------
Peter Maas,  M+R Infosysteme,  D-52070 Aachen,  Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
------------------------------------------------------------------



More information about the Python-list mailing list