package main
import (
"html/template"
"log"
)
func getTemplates() *template.Template {
t, err := template.New("foo").Parse(`{{define "sign_in.html"}}
Sign In
{{ if .Htpasswd }}
{{ end }}
{{end}}`)
if err != nil {
log.Fatalf("failed parsing template %s", err.Error())
}
t, err = t.Parse(`{{define "error.html"}}
{{.Title}}
{{.Title}}
{{.Message}}
Sign In
{{end}}`)
if err != nil {
log.Fatalf("failed parsing template %s", err.Error())
}
return t
}