From 97e30570056309bda28fc41acba27c01fa1ef9f3 Mon Sep 17 00:00:00 2001 From: SayaAndy Date: Sat, 26 Jul 2025 22:01:30 +0700 Subject: refactor: use tailwindcss tool for generating css (vpn required no more for russia) refactor: move css to sayana-static bucket refactor: first touch of rendering templates --- main.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index c927dac..ed47574 100644 --- a/main.go +++ b/main.go @@ -4,10 +4,21 @@ import ( "log" "github.com/gofiber/fiber/v2" + "github.com/gofiber/template/html/v2" ) func main() { - app := fiber.New() + engine := html.New("./views", ".html") + + app := fiber.New(fiber.Config{ + Views: engine, + }) + + app.Get("/", func(c *fiber.Ctx) error { + return c.Render("index", fiber.Map{ + "Title": "Демо-материал после демон-аэропорта", + }) + }) app.Static("/", "./public") -- cgit v1.3.1+13