vector to work with
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user