Initial commit

This commit is contained in:
Magnus Åhall 2025-07-02 11:36:44 +02:00
commit 20ce6065c8
4 changed files with 196 additions and 0 deletions

31
page.go Normal file
View file

@ -0,0 +1,31 @@
package HTMLTemplate
type Page interface {
GetVersion() string
GetLayout() string
GetPage() string
GetData() any
}
type SimplePage struct {
Version string
Layout string
Page string
Data any
}
func (s SimplePage) GetVersion() string {
return s.Version
}
func (s SimplePage) GetLayout() string {
return s.Layout
}
func (s SimplePage) GetPage() string {
return s.Page
}
func (s SimplePage) GetData() any {
return s.Data
}