SimpleTemplate.defaults['get_url'] = app.get_url
SimpleTemplate.defaults['url'] = lambda : request.url
SimpleTemplate.defaults['fullpath'] = lambda : request.fullpath
Include variables in template context on every page with Bottle.py