I would think the indentation in python would make this pretty difficult, indentation doesn't matter much with php because it uses curly braces, so it can be mixed in with html quite easily (although this is becoming less common). For this reason, most python web frameworks, (e.g. Django and CherryPy) use specialised templating languages, they are both worth checking out.
On Tue, Mar 3, 2009 at 6:30 AM, umar <umarhaf...@yahoo.com> wrote: > http://www.python.org/community/pycon/dc2004/papers/14/ > > http://www.howtoforge.com/embedding-python-in-apache2-with-mod_python-debian-ubuntu-fedora-centos-mandriva-opensuse > > If I were you, I would stick with CGI interface to python scripts. In above > cases the server needs to be modified (as in PHP, > the only difference is that a lot of hosting companies particular shared > hosting offer the server which can interpret embedded > javascript and php code but not embedded python). > > This might just be my misconception but making use CGI interface may also > offer more security than going for embedding option. > > Well I am just amateur myself... > > Regards > > > > > Malte Beckmann wrote: > >> Hello! >> >> Just wrote my first 30 odd python scripts and loving this language. >> >> But do, however, have a burning question on my mind. >> >> Why can I not just do <?python ... ?> in my webpages like I can do with >> PHP? >> >> Cheers! /m >> >> >> _______________________________________________ >> python-uk mailing list >> python-uk@python.org >> http://mail.python.org/mailman/listinfo/python-uk >> >> _______________________________________________ > python-uk mailing list > python-uk@python.org > http://mail.python.org/mailman/listinfo/python-uk >
_______________________________________________ python-uk mailing list python-uk@python.org http://mail.python.org/mailman/listinfo/python-uk