aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go19
1 files changed, 2 insertions, 17 deletions
diff --git a/main.go b/main.go
index 4bb9d8a..11701be 100644
--- a/main.go
+++ b/main.go
@@ -55,23 +55,8 @@ func main() {
}
g.Templates = append(g.Templates, "templates/base/*.gohtml")
- home := golatt.Template{
- Golatt: g,
- Name: "index",
- Title: cfg.Person.Name,
- Data: &cfg,
- URL: "/",
- }
- credits := golatt.Template{
- Golatt: g,
- Name: "credits",
- Title: "Credits",
- Data: &cfg,
- URL: "/credits",
- }
-
- g.HandleFunc("/", home.Handle())
- g.HandleFunc("/credits", credits.Handle())
+ g.NewTemplate("index", "/", cfg.Person.Name, "", "", &cfg).Handle()
+ g.NewTemplate("credits", "/credits", "Credits", "", "", &cfg).Handle()
g.StartServer(":80")
}