package main import ( "github.com/gofiber/fiber/v2" "github.com/gofiber/template/html/v2" ) func main() { app := fiber.New(fiber.Config{ Views: setupTemplates(), }) app.Static("/public", "./public") app.Get("/", func(ctx *fiber.Ctx) error { return ctx.Render("index", fiber.Map{}) }) app.Listen("localhost:4200") } func setupTemplates() *html.Engine { engine := html.New("./views", ".html") return engine }