Skip to content

Instantly share code, notes, and snippets.

@onny
Created September 12, 2015 20:17
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 onny/c7ca3509e223493cb684 to your computer and use it in GitHub Desktop.
Save onny/c7ca3509e223493cb684 to your computer and use it in GitHub Desktop.
Bottlepy get parameters utf8
#!/usr/bin/python
from bottle import route, run, template, request
@route('/hello/<name>')
def index(name):
prename = request.query['prename']
return template('<b>Hello {{prename}} {{name}}</b>!', name=name, prename=prename)
run(host='localhost', port=8080)
@onny
Copy link
Author

onny commented Sep 12, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment