Skip to content
Snippets Groups Projects
Commit c50a9dce authored by Travis Ralston's avatar Travis Ralston
Browse files

Enable template cache?

Unclear why this was disabled
parent a3ecef77
No related branches found
No related tags found
No related merge requests found
...@@ -29,9 +29,9 @@ func GetInstance() *templates { ...@@ -29,9 +29,9 @@ func GetInstance() *templates {
func GetTemplate(name string) (*template.Template, error) { func GetTemplate(name string) (*template.Template, error) {
i := GetInstance() i := GetInstance()
//if v, ok := i.cached[name]; ok { if v, ok := i.cached[name]; ok {
// return v, nil return v, nil
//} }
fname := fmt.Sprintf("%s.html", name) fname := fmt.Sprintf("%s.html", name)
tmplPath := path.Join(config.Runtime.TemplatesPath, fname) tmplPath := path.Join(config.Runtime.TemplatesPath, fname)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment