Skip to content

Instantly share code, notes, and snippets.

@yelcat
Created August 1, 2012 14:21
Show Gist options
  • Save yelcat/3227267 to your computer and use it in GitHub Desktop.
Save yelcat/3227267 to your computer and use it in GitHub Desktop.
A complete web.py application.
import web
urls = (
'/(.*)', 'hello'
)
app = web.application(urls, globals())
class hello:
def GET(self, name):
if not name:
name = 'World'
return 'Hello, ' + name + '!'
if __name__ == "__main__":
app.run()
@yelcat
Copy link
Author

yelcat commented Aug 1, 2012

  • It's every simple

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment