diff --git a/tem/tem.go b/tem/tem.go index 8d82dd2..5deb512 100644 --- a/tem/tem.go +++ b/tem/tem.go @@ -11,7 +11,8 @@ var ( ) func Load() { - Templates = template.Must(template.ParseGlob("tem/html/*.html")) + func_map := template.FuncMap{} + Templates = template.Must(template.New("").Funcs(func_map).ParseGlob("tem/html/**/*.html")) fmt.Println("templates loaded") }