Add sniff for checking functions in templates