14 lines
247 B
Go
14 lines
247 B
Go
|
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"),
|
||
|
)
|
||
|
}
|