Include variables in template context on every page with Bottle.py
Note: this same solution can be used with the other template engines. The technique is exactly the same, but you use BaseTemplate (it works for all template classes) or the class for the engine you want to use.
Is there a bottle.py equivalent of context processors that you get in Flask?