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