diff --git a/layouts.go b/layouts.go new file mode 100644 index 0000000..5120236 --- /dev/null +++ b/layouts.go @@ -0,0 +1,25 @@ +package main + +import ( + "html/template" + "io" +) + +var index = ` + + + + + + + + +` +func IndexPage(w io.Writer) (err error) { + t, err := template.New("index").Parse(index) + if (err != nil) { + return err + } + return t.Execute(w, index) +} +