Skip to content

Instantly share code, notes, and snippets.

@highfestiva
Created February 24, 2014 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save highfestiva/9184932 to your computer and use it in GitHub Desktop.
Save highfestiva/9184932 to your computer and use it in GitHub Desktop.
import web
urls = (
'/(.*)', 'index' # Regexp matching for URI -> class
)
class index:
def GET(self, name):
return '<html><body>Hi!</body></html>'
app = web.application(urls, globals())
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment