Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (9 sloc) 218 Bytes
package main
import "html/template"
func loadHTML(name ...string) (t *template.Template) {
for i := range name {
name[i] = "tmpl/" + name[i] + ".html"
}
t = template.Must(template.ParseFiles(name...))
return
}
You can’t perform that action at this time.