You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 line
279B

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