Skip to content

Instantly share code, notes, and snippets.

@joemarct
Created April 1, 2013 19:47
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 joemarct/5287212 to your computer and use it in GitHub Desktop.
Save joemarct/5287212 to your computer and use it in GitHub Desktop.
from bottle import TEMPLATE_PATH, route, jinja2_template as template
from models import *
TEMPLATE_PATH.append("./app/templates")
@route('/')
@route('/hello/:name')
def hello(name='Stranger'):
return template('home.html', name=name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment