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.
This commit is contained in:
parent
6ede99d7c6
commit
d235ee4e5c
59 changed files with 869 additions and 777 deletions
|
|
@ -25,7 +25,7 @@ import (
|
|||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/server/home"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/server/legal"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/server/news"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/server/templates"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/server/templating"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/solr"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/sql"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/ssh2"
|
||||
|
|
@ -116,8 +116,8 @@ func (dis *Distillery) Info() *admin.Admin {
|
|||
func (dis *Distillery) Policy() *policy.Policy {
|
||||
return export[*policy.Policy](dis)
|
||||
}
|
||||
func (dis *Distillery) Templating() *templates.Templating {
|
||||
return export[*templates.Templating](dis)
|
||||
func (dis *Distillery) Templating() *templating.Templating {
|
||||
return export[*templating.Templating](dis)
|
||||
}
|
||||
|
||||
func (dis *Distillery) Purger() *purger.Purger {
|
||||
|
|
@ -190,7 +190,7 @@ func (dis *Distillery) allComponents() []initFunc {
|
|||
auto[*news.News],
|
||||
|
||||
auto[*assets.Static],
|
||||
auto[*templates.Templating],
|
||||
auto[*templating.Templating],
|
||||
|
||||
// Cron
|
||||
auto[*cron.Cron],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue