Update template.go

Supports various characters tags in the templates according to TemplateLoader