Slide 16
Slide 16 text
16
from bottle import route, run, debug, template
@route('/hello')
def hello():
return "Hello World!"
@route('/foo')
def bar():
output = template("foobar", rows=[34, 'Fred', 12, False, 72.3])
return output
run(host='0.0.0.0', port=8080, debug=True)
server.py