for and if snippets for django templates
Removing lambda functions in hooks