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
Please update this file to follow the existing convention of double over single quotes.