templates: Share fragments

This commit is contained in:
Tom Wiesing 2022-10-20 11:26:35 +02:00
parent dd7be3f520
commit d64e6f8ec3
No known key found for this signature in database
12 changed files with 111 additions and 93 deletions

View file

@ -15,8 +15,8 @@ import (
//go:embed "html/info_index.html"
var indexTemplateStr string
var indexTemplate = static.AssetsControlIndex.MustParse(
base("info_index.html"),
var indexTemplate = static.AssetsControlIndex.MustParseShared(
"info_index.html",
indexTemplateStr,
)