updated template.rst

adding comments having to do with mako integration requirements and the context variable on BeforeRender