import web render web template render templates urls hello app web app

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
import web
render = web.template.render('templates/')
urls = (
'/(.*)', 'hello'
)
app = web.application(urls, globals())
class hello:
def GET(self, name):
return render.index(name)
if __name__ == "__main__":
app.run()