fixes and improvements in broker and render

This commit is contained in:
2025-05-23 14:31:23 +02:00
parent ba604bb8b4
commit 2fea2e6ac5
5 changed files with 116 additions and 94 deletions
+4
View File
@@ -226,6 +226,10 @@ func NewApp(config ...Config) *App {
if cfg.CreateTemplates {
slog.Debug("creating templates")
app.Templates = NewHTMLRender()
if cfg.EnvMode == EnvironmentProduction {
app.Templates.EnableCache = true
}
}
if cfg.CreateSession {