cache buster
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user