Created
August 1, 2012 14:21
-
-
Save yelcat/3227267 to your computer and use it in GitHub Desktop.
A complete web.py application.
This file contains 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
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() |
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