rebuilt template lookup to use a configured template directory before the builtins

This commit is contained in:
2025-09-17 12:23:33 -06:00
parent 9e5a24e03d
commit 9345e95b12
5 changed files with 20 additions and 40 deletions
+3
View File
@@ -21,6 +21,9 @@ type AmConfig struct {
Site struct {
Title string `yaml:"title"`
} `yaml:"site"`
Rendering struct {
TemplateDir string `yaml:"templatedir"`
} `yaml:"rendering"`
}
//go:embed default.yaml
+2
View File
@@ -8,3 +8,5 @@
#
site:
title: "Amsterdam Web Communities System"
rendering:
templatedir: custom_templates