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:
Tom Wiesing 2023-01-20 14:42:37 +01:00
parent 6ede99d7c6
commit d235ee4e5c
No known key found for this signature in database
59 changed files with 869 additions and 777 deletions

View file

@ -19,6 +19,12 @@ type MenuItem struct {
Priority MenuPriority // menu priority
}
// DummyMenuItem is a dummy menu item
// It should be replaced before being displayed to the user
var DummyMenuItem = MenuItem{
Title: "* to be replaced *",
}
func MenuItemSort(a, b MenuItem) bool {
return a.Priority < b.Priority
}