Theming support

This commit is contained in:
Magnus Åhall 2024-06-25 08:59:07 +02:00
parent e86c96d78f
commit 58e0b2f081
99 changed files with 1839 additions and 1094 deletions

View file

@ -15,6 +15,7 @@ type Page struct {
LAYOUT string
PAGE string
MENU string
CONFIG map[string]string
Label string
Icon string
@ -47,6 +48,8 @@ func (p *Page) Render(w http.ResponseWriter) {
"LAYOUT": p.LAYOUT,
"PAGE": p.PAGE,
"MENU": p.MENU,
"CONFIG": smonConfig.Settings,
"Label": p.Label,
"Icon": p.Icon,
"Data": p.Data,