aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-10 15:37:17 +0100
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-10 15:37:17 +0100
commitc6b6252270e94d4512884187135df1c1a20f5734 (patch)
tree3df5f96d9486485e58d0392771017d934f0726f5 /main.go
parenta1c1eb9ded1e6f1de0946b40c01439f5c9d3d529 (diff)
build(golatt): upgrade to 0.2.0
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")
}