hx-boost works properly; introduced cache for xslt processor

This commit is contained in:
Simon Martens
2024-12-28 22:19:41 +01:00
parent 6e123054e2
commit 863b520d1c
5 changed files with 81 additions and 74 deletions

View File

@@ -23,7 +23,7 @@ func EmbedSafe(fs fs.FS) func(string) template.HTML {
}
}
func EmbedUnsafe(fs fs.FS) func(string) string {
func Embed(fs fs.FS) func(string) string {
embed_cache.Clear()
return func(path string) string {
val, err := getFileData(fs, path)