export template error parser by refactoring parseTemplateError to ParseTemplateError