fix: table template preview page template

This commit is contained in:
efim
2023-11-17 03:58:20 +00:00
parent 04ab19fadf
commit 942091c5d8
4 changed files with 53 additions and 29 deletions

View File

@@ -192,7 +192,10 @@ func roomTemplatesPreview(
tmpl := template.Must(template.New("").Funcs(template.FuncMap{
"bricksForPerson": bricksForPerson,
"personsFromRoom": personsFromRoom,
}).ParseFS(templateFs, baseFile, "templates/tableTemplates.gohtml"))
}).ParseFS(templateFs, baseFile ,
"templates/tableTemplates.gohtml",
"templates/tableTemplatesPreview.gohtml",
))
err := tmpl.ExecuteTemplate(w, "full-page", pageData)
if err != nil {