diff --git a/python-cgi-template.py b/python-cgi-template.py new file mode 100755 index 0000000..c502747 --- /dev/null +++ b/python-cgi-template.py @@ -0,0 +1,27 @@ +#!/usr/bin/env python + +import cgi +from subprocess import * + +# Enable these for debugging +#import cgitb +#cgitb.enable() + +def header(): + print "Content-Type: text/html\n" + +def printHead(title): + print ''' + %s +''' % title + +def main(): + header() + print '' + printHead('Title') + print '' + print '

%s

' % 'Title' + print '' + +if __name__ == "__main__": + main()