rudimentary css

This commit is contained in:
Bronku 2025-02-01 08:18:08 +01:00
parent 7515010afd
commit 2c90e19eba
10 changed files with 109 additions and 110 deletions

View file

@ -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}