aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/main.go b/main.go
index 50bc462..e05c422 100644
--- a/main.go
+++ b/main.go
@@ -55,5 +55,15 @@ func main() {
}
g.Templates = append(g.Templates, "templates/base/*.gohtml")
- //g.StartServer(":80")
+ t := golatt.Template{
+ Golatt: g,
+ Name: "index",
+ Title: data.Person.Name,
+ Data: &data,
+ URL: "/",
+ }
+
+ g.HandleFunc("/", t.Handle())
+
+ g.StartServer(":8000")
}