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
1 changed files with 25 additions and 0 deletions

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)
}