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

21 lines
275 B
Go
Raw Normal View History

2019-05-27 21:46:09 +00:00
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)
}