Sharing data with templates: correct import cycle
This commit is contained in:
13
pkg/models/templatedata.go
Normal file
13
pkg/models/templatedata.go
Normal file
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
// TemplateData holds data sent from handlers to templates
|
||||
type TemplateData struct {
|
||||
StringMap map[string]string
|
||||
IntMap map[string]int
|
||||
FloatMap map[string]float32
|
||||
Data map[string]interface{}
|
||||
CSRFToken string
|
||||
Flash string
|
||||
Warning string
|
||||
Error string
|
||||
}
|
Reference in New Issue
Block a user