I'm using bottle with beaker as session middleware. I'd like to include my session object in all my mako templates without specifying it when rendering:
Instead of this:
return mako_template("myView", {
"session" : bottle.request.environ.get('beaker.session')
})
just do this:
return mako_template("myView")
Is this possible? If so, how?