package main import ( "html/template" "path/filepath" ) func getTemplate(name string) (*template.Template, error) { return template.New("").ParseFiles( filepath.Join(pagesDir, name+".tmpl"), filepath.Join(templatesDir, "base.tmpl"), ) }