run hooks through template allowing for dynamic contexting in pre/post hooks

You can now run the pre/post hooks through jinja allowing for context variables to be accessed
Lose the intermediate variable:
`output = Template(content).render(**context)`