func (r *Render) getTemplateName(tpl string) string {
	dir, file := filepath.Split(tpl)
	dir = strings.Replace(dir, r.TemplatesDir, "", 1)
	file = strings.TrimSuffix(file, r.Ext)
	return dir + file
}
func (r *Render) getTemplateName(tpl string) string {
	dir, file := filepath.Split(tpl)
	dir = strings.Replace(dir, r.TemplatesDir, "", 1)
	file = strings.TrimSuffix(file, r.Ext)
	return dir + file
}
func ( r * Render ) getTemplateName ( tpl string ) string { dir , file := filepath . Split ( tpl ) dir = strings . Replace ( dir , r . TemplatesDir , " " , 1 ) file = strings . TrimSuffix ( file , r . Ext ) return dir + file }
// getTemplateName returns the name of the template
// For example, if the template path is `templates/articles/list.html`
// getTemplateName would return `articles/list`
getTemplateName returns the name of the template For example if the template path is templates / articles / list . html getTemplateName would return articles / list