startpage/tmpl_data.go

39 lines
644 B
Go
Raw Permalink Normal View History

2022-05-08 14:32:13 +02:00
package main
type TmplData struct {
text *Text
Bookmarks []Bookmark
Settings *Settings
}
func (d *TmplData) Translate(str string) string {
return d.text.Translate(str)
}
func (d *TmplData) Language() string {
return d.text.Language
}
2022-09-05 14:17:07 +02:00
type CustomizeData struct {
text *Text
Bookmarks []BookmarkData
Settings *Settings
}
func (d *CustomizeData) Translate(str string) string {
return d.text.Translate(str)
}
func (d *CustomizeData) Language() string {
return d.text.Language
}
type BookmarkData struct {
*Bookmark
text *Text
}
func (bd *BookmarkData) Translate(str string) string {
return bd.text.Translate(str)
}