add mako requirement of context

and an example of how to use it when checking if someone is authorized to view a template.