introduce TemplateSyntaxError in preparation for better debugging