build(golatt): upgrade to 0.2.0
This commit is contained in:
parent
a1c1eb9ded
commit
c6b6252270
4 changed files with 8 additions and 22 deletions
19
main.go
19
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")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue