add TemplateMapResolver for handle template