Changeset 0.22.6 (#148)

This commit is contained in:
2026-03-03 13:12:13 +00:00
parent 45fe965c32
commit d8e0664fa3
24 changed files with 983 additions and 2473 deletions

View File

@@ -56,8 +56,9 @@ type PageData struct {
Surface string // active surface ID
Section string // sub-section (for admin pages)
CSPNonce string
BasePath string
Version string
BasePath string
Version string
Environment string
User *UserContext
Data any // surface-specific data from loader
}
@@ -133,6 +134,7 @@ func (e *Engine) RegisterLoader(name string, fn DataLoaderFunc) {
func (e *Engine) Render(c *gin.Context, name string, data PageData) {
data.BasePath = e.cfg.BasePath
data.Version = Version
data.Environment = e.cfg.Environment
data.CSPNonce = generateNonce()
data.Banner = e.loadBanner()