This repository has been archived on 2019-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
scoreboard/features/index/page.go
2019-05-27 23:46:09 +02:00

20 lines
275 B
Go

package index
import (
"html/template"
"io"
)
type index struct {
Template template.Template
}
func newPage(t template.Template) *index {
return &index{
Template: *t.Lookup("index.html"),
}
}
func (page index) Send(w io.Writer) {
page.Template.Execute(w, page)
}