anything in python to aid generation of html for CGI?

Alex Hunsley lard at tardis.ed.ac.molar.uk
Thu Jun 3 17:16:48 CEST 2004


I'm using python to write a CGI script. I'm using a single script to both 
present a form and to interpret the results, hence sometimes the code has to 
output html for the form. Are there any 'shortcuts' in python for outputting 
html? I'm thinking along the lines of perl's cgi podule, which allows you to 
write things like:

print p;


which would output "<p>", and so on...

thanks
alex




More information about the Python-list mailing list