Skip to content

Instantly share code, notes, and snippets.

@pettomartino
Created September 1, 2011 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pettomartino/1186859 to your computer and use it in GitHub Desktop.
Save pettomartino/1186859 to your computer and use it in GitHub Desktop.
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