Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from bottle import route, run, view
@route('/')
@route('/index.html')
def index():
return "<a href='/hello'>Go to Hello World page</a>"
@route('/hello')
@route('/hello/:name')
@view('index')
def hello(name='World'):
return dict(name=name)
run(server='gae')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment