Last active
December 27, 2015 17:09
-
-
Save jernejcic/7359734 to your computer and use it in GitHub Desktop.
Quick and dirty python to browser implementation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def application(environ, start_response) | |
html = "<html><body>" | |
html += "<h1>Hello World!</h1>" | |
html += "</body></html>" | |
start_response('200 OK', [('Content-type', 'text/plain'), ('Content-Length', str(len(html)))]) | |
return [html] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment