1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2024-12-25 15:26:30 +00:00

layouts: first stub of an index html page

This commit is contained in:
Vincent Batts 2013-02-09 00:11:52 -05:00
parent c616327fc6
commit dadf07877c

25
layouts.go Normal file
View file

@ -0,0 +1,25 @@
package main
import (
"html/template"
"io"
)
var index = `
<html>
<head>
</head>
<body>
</body>
</html>
`
func IndexPage(w io.Writer) (err error) {
t, err := template.New("index").Parse(index)
if (err != nil) {
return err
}
return t.Execute(w, index)
}