Source

pyptug / webpy / helloworld / hw2.py

Full commit
#!/usr/bin/env python
""" A real hello world web application using web.py """

import web


class All:
    def GET(self):
        return 'Hello, World!'

# urls to dispatch
URLS = ( '/.*', 'All',
)
# setting up a web app
if __name__ == '__main__' :
    app = web.application(URLS, globals())
    app.run()