Skip to content

Instantly share code, notes, and snippets.

@jernejcic
Last active December 27, 2015 17:09
Show Gist options
  • Save jernejcic/7359734 to your computer and use it in GitHub Desktop.
Save jernejcic/7359734 to your computer and use it in GitHub Desktop.
Quick and dirty python to browser implementation.
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