diff --git a/templating/templates.go b/templating/templates.go index 508f80967501ff780b1954f78d297dbbe7a1cd10..ba618cb0d2600201317fd33dd03de3254b47c548 100644 --- a/templating/templates.go +++ b/templating/templates.go @@ -29,9 +29,9 @@ func GetInstance() *templates { func GetTemplate(name string) (*template.Template, error) { i := GetInstance() - //if v, ok := i.cached[name]; ok { - // return v, nil - //} + if v, ok := i.cached[name]; ok { + return v, nil + } fname := fmt.Sprintf("%s.html", name) tmplPath := path.Join(config.Runtime.TemplatesPath, fname)