Add extra context for templates

Fixes #27 
I was no too sure about the order of the mixins here. Do we want the given context to have priority over everything?