aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2025-01-05 15:49:34 -0800
committerAdam Mathes <adam@trenchant.org>2025-01-05 15:49:34 -0800
commit40da544bc61f7791d2287de4315f1ad0115d1467 (patch)
tree6bdec83171d7c4d1f74f0c44d2a3125f100023df
parent828d9e39ce436c8290efa0dd875cbb9b8cbbf504 (diff)
downloadsnkt-master.tar.gz
snkt-master.tar.bz2
snkt-master.zip
actually that breaks too much stuff, back out that change and fix laterHEADmaster
-rw-r--r--render/render.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/render/render.go b/render/render.go
index 9e829ab..b8892b1 100644
--- a/render/render.go
+++ b/render/render.go
@@ -66,7 +66,7 @@ func Init() {
"SiteURL": SiteURL,
}
- // base := path.Join(config.Config.TmplDir, BASE_TEMPLATE)
+ base := path.Join(config.Config.TmplDir, BASE_TEMPLATE)
for _, t := range ts {
tf := filepath.Base(t)
@@ -74,13 +74,13 @@ func Init() {
// templates[tf] = template.Must(template.ParseFiles(t, base))
tx := template.New("t").Funcs(tmplFuncs)
- // templates[tf], err = tx.ParseFiles(base, t, (ts...))
- templates[tf], err = tx.ParseGlob(config.Config.TmplDir + "/*")
+ templates[tf], err = tx.ParseFiles(base, t)
if err != nil {
// temporary files can confuse this, especially when
// running the file system watcher so we silently
// ignore any templates that disappeared since we started
// since this is usually not a real error condition
+ log.Println(err)
delete(templates, tf)
}
}