cache buster

This commit is contained in:
JurajKubrican
2025-03-04 22:01:23 +01:00
parent 00c209032f
commit cac9548058
14 changed files with 115 additions and 99 deletions

View File

@@ -9,6 +9,7 @@ import (
"github.com/labstack/gommon/log"
"knet.sk/src/boxes"
"knet.sk/src/draw"
"knet.sk/src/util"
)
type Templates struct {
@@ -26,12 +27,14 @@ func NewTemplates() *Templates {
}
type Page struct {
Boxes []boxes.Box
Boxes []boxes.Box
BuildNumber string
}
func newPage(boxes []boxes.Box) Page {
return Page{
Boxes: boxes,
Boxes: boxes,
BuildNumber: util.GetBuildNumber(),
}
}
@@ -41,6 +44,7 @@ var (
func main() {
e.Renderer = NewTemplates()
// read the ./build_number file
e.Logger.SetLevel(log.DEBUG)
e.Use(middleware.Logger())