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

@@ -51,7 +51,9 @@ func (e *Engine) Funcs(app *app.KGPZ) error {
e.AddFunc("Lower", strings.ToLower)
e.AddFunc("Safe", functions.Safe)
// Embedding of file contents
e.AddFunc("EmbedSafe", functions.EmbedSafe(views.StaticFS))
e.AddFunc("Embed", functions.Embed(views.StaticFS))
// App specific
e.AddFunc("GetAgent", app.Library.Agents.Item)