Re: embedding python in HTML

2006-02-22 Thread Magnus Lycka
John Salerno wrote: > Thanks, that makes much more sense to me now. But does this mean I can > still write HTML normally? What would an example be of having HTML > within a Python script? I have a hard time picturing this, because I > imagine that most of my pages will be almost all HTML, with j

Re: embedding python in HTML

2006-02-18 Thread Christoph Zwerschke
Rene Pijlman wrote: > There's also PSP: > http://www.ciobriefings.com/psp/ Another incarnation of PSP can be used as part of Webware for Python (http://www.w4py.org). And one of the more modern solutions that should be mentioned is Kid (http://kid.lesscode.org). -- Christoph -- http://mail.py

Re: embedding python in HTML

2006-02-18 Thread Steve Holden
bruno at modulix wrote: > John Salerno wrote: > >>Rene Pijlman wrote: >> >> >>>John Salerno: >>>[Python alternative for PHP] >>> >>> So to do this with Python, do I simply integrate it into the HTML as above, with no extra steps? >>> >>> >>>You'd need something like the PHP engine, that u

Re: embedding python in HTML

2006-02-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, John Salerno <[EMAIL PROTECTED]> wrote: >bruno at modulix wrote: > >> You've got to understand that Python is *not* a 'ServerPage' language >> (-> php, asp, jsp etc) in itself. Your server can now run python, fine, >> but *how* ? CGI ? FastCGI ? mod_python ? other ?

Re: embedding python in HTML

2006-02-17 Thread Georg Brandl
John Salerno wrote: > Kirk McDonald wrote: > >> A more common (and bare-metal) approach is CGI. In CGI, a request for a >> page runs a script, the output of which is the HTML page. I think this >> only requires that the server has Python installed, which you have said >> is the case. Python has

Re: embedding python in HTML

2006-02-17 Thread John Salerno
Kirk McDonald wrote: > A more common (and bare-metal) approach is CGI. In CGI, a request for a > page runs a script, the output of which is the HTML page. I think this > only requires that the server has Python installed, which you have said > is the case. Python has signifigant standard librar

Re: embedding python in HTML

2006-02-17 Thread John Salerno
John Salerno wrote: > I'm hoping someone can give me the basics for how to do very simple > things with Python scripts from within my HTML. For example, I know that > I can do this in PHP: > > Here is a header > // include some external html > More html > > So to do this with Python, do I s

Re: embedding python in HTML

2006-02-17 Thread John Salerno
Rene Pijlman wrote: > John Salerno: > [Python alternative for PHP] >> So to do this with Python, do I simply integrate it into the HTML as >> above, with no extra steps? > > You'd need something like the PHP engine, that understands Python rather > than PHP. My web server can run Python, fortun

embedding python in HTML

2006-02-17 Thread John Salerno
I'm hoping someone can give me the basics for how to do very simple things with Python scripts from within my HTML. For example, I know that I can do this in PHP: Here is a header // include some external html More html So to do this with Python, do I simply integrate it into the HTML as a

Re: embedding python in HTML

2006-02-17 Thread Kirk McDonald
John Salerno wrote: > bruno at modulix wrote: > >> You've got to understand that Python is *not* a 'ServerPage' language >> (-> php, asp, jsp etc) in itself. Your server can now run python, fine, >> but *how* ? CGI ? FastCGI ? mod_python ? other ? (hint: it's probably >> just plain old CGI...) >

Re: embedding python in HTML

2006-02-17 Thread Paul Boddie
Rene Pijlman wrote: > John Salerno: > [Python alternative for PHP] > >So to do this with Python, do I simply integrate it into the HTML as > >above, with no extra steps? > > You'd need something like the PHP engine, that understands Python rather > than PHP. [...] > There's also PSP: > http://www

Re: embedding python in HTML

2006-02-16 Thread Rene Pijlman
John Salerno: [Python alternative for PHP] >So to do this with Python, do I simply integrate it into the HTML as >above, with no extra steps? You'd need something like the PHP engine, that understands Python rather than PHP. I've used Cheetah: http://www.cheetahtemplate.org/ Our BDFL seems to

Re: embedding python in HTML

2006-02-16 Thread John Salerno
bruno at modulix wrote: > You've got to understand that Python is *not* a 'ServerPage' language > (-> php, asp, jsp etc) in itself. Your server can now run python, fine, > but *how* ? CGI ? FastCGI ? mod_python ? other ? (hint: it's probably > just plain old CGI...) So does that mean I need to ha

Re: embedding python in HTML

2006-02-16 Thread bruno at modulix
John Salerno wrote: > Rene Pijlman wrote: > >> John Salerno: >> [Python alternative for PHP] >> >>> So to do this with Python, do I simply integrate it into the HTML as >>> above, with no extra steps? >> >> >> You'd need something like the PHP engine, that understands Python rather >> than PHP. >