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.
template
✓ github.com/gofiber/template
Minimal Fiber app using the HTML template engine from gofiber/template.
package main
import (
"github.com/gofiber/fiber/v2"
"github.com/gofiber/template/html"
)
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, World!",
})
})
app.Listen(":3000")
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.8.3latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.