add web.py frameworks example

This commit is contained in:
lovedboy 2015-09-22 21:09:19 +08:00
parent 811ea7880e
commit ac4292f60e

View File

@ -0,0 +1,16 @@
# Run with
#
# $ gunicorn webpyapp:app
#
import web
urls = (
'/', 'index'
)
class index:
def GET(self):
return "Hello, world!"
app = web.application(urls, globals()).wsgifunc()