embedding python in HTML

John Salerno johnjsal at NOSPAMgmail.com
Thu Feb 16 15:54:44 EST 2006


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:
> 
> <h1>Here is a header</h1>
> <?php include("file.html"); ?>    // include some external html
> <p>More html</p>
> 
> So to do this with Python, do I simply integrate it into the HTML as 
> above, with no extra steps? Also, which symbols do I use to denote 
> Python language?
> 
> Thanks.

Also, do I need to give the html file an extension of .py?



More information about the Python-list mailing list