rudimentary css
This commit is contained in:
parent
7515010afd
commit
2c90e19eba
10 changed files with 109 additions and 110 deletions
4
main.go
4
main.go
|
|
@ -3,6 +3,7 @@ package main
|
|||
import (
|
||||
"embed"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"net/http"
|
||||
|
||||
|
|
@ -18,7 +19,8 @@ var templates embed.FS
|
|||
func main() {
|
||||
var c controller
|
||||
c.tmpl = LoadTemplates(templates)
|
||||
c.LoadRouter(public)
|
||||
publicfs := os.DirFS("public")
|
||||
c.LoadRouter(publicfs)
|
||||
c.cakes = make(map[int]Cake)
|
||||
c.cakes[0] = Cake{"Sernik", 120, 0}
|
||||
c.cakes[1] = Cake{"Malinowa chmórka", 120, 1}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue