wisski-cloud-distillery/internal/dis/component/server/templating/templating.go
Tom Wiesing d235ee4e5c
Refactor html templates
This commit entirely refactors the use of html templates. Instead of
inheriting from a shared template, we insert the results into a base
template.
2023-01-23 11:41:20 +01:00

21 lines
469 B
Go

package templating
import (
"github.com/FAU-CDI/wisski-distillery/internal/dis/component"
"github.com/FAU-CDI/wisski-distillery/pkg/lazy"
)
// Templating implements templating customization
type Templating struct {
component.Base
Dependencies struct {
Routeables []component.Routeable
Menuable []component.Menuable
}
menu lazy.Lazy[[]component.MenuItem]
}
var (
_ component.Backupable = (*Templating)(nil)
_ component.Menuable = (*Templating)(nil)
)