vector to work with

This commit is contained in:
dexta.de
2026-07-27 22:21:18 +02:00
parent 0f8c45963c
commit ffe0c7d689
4 changed files with 11 additions and 6 deletions
+2 -1
View File
@@ -238,6 +238,7 @@ func getTemplateFuncMap() template.FuncMap {
}
func generateHTMLFile(g *StoryGraph, outPath string, tmplPath string) error {
fmt.Println("tmp path "+tmplPath)
tmpl, err := template.New(filepath.Base(tmplPath)).Funcs(getTemplateFuncMap()).ParseFiles(tmplPath)
if err != nil { return fmt.Errorf("Template-Fehler: %v", err) }
f, err := os.Create(outPath)
@@ -284,4 +285,4 @@ func startServer(port int, watchDir string, htmlPath string, tmplPath string) {
})
http.ListenAndServe(addr, nil)
}
}