Registry /
web-framework / gofiber-template-html-v2
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
html
✓ github.com/gofiber/template/html/v2
Creates a Fiber app with an HTML template engine that renders views from a directory.
package main
import (
"github.com/gofiber/fiber/v2"
html "github.com/gofiber/template/html/v2"
)
func main() {
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": "Hello"})
})
app.Listen(":3000")
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2.1.3latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.