This commit is contained in:
parent
784baa221d
commit
ce91685f8d
@ -30,11 +30,11 @@ func BuildTemplates(box *packr.Box) (builttemplates *Template, err error) {
|
|||||||
tmpl.New(filename).Parse(tmplContent)
|
tmpl.New(filename).Parse(tmplContent)
|
||||||
}
|
}
|
||||||
|
|
||||||
builttemplate := &Template{
|
builttemplates = &Template{
|
||||||
templates: tmpl,
|
templates: tmpl,
|
||||||
}
|
}
|
||||||
|
|
||||||
return builttemplate, nil
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// BuildTemplatesDir converts packr packages to html/template
|
// BuildTemplatesDir converts packr packages to html/template
|
||||||
@ -52,11 +52,11 @@ func BuildTemplatesDir(dir string) (builttemplates *Template, err error) {
|
|||||||
return err
|
return err
|
||||||
})
|
})
|
||||||
|
|
||||||
builttemplate := &Template{
|
builttemplates = &Template{
|
||||||
templates: tmpl,
|
templates: tmpl,
|
||||||
}
|
}
|
||||||
|
|
||||||
return builttemplate, nil
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Template is a template struct
|
// Template is a template struct
|
||||||
|
Loading…
Reference in New Issue
Block a user