Registry / web-framework / gofiber-template-html-v2

gofiber-template-html-v2

JSON →
library2.1.3gogounverified

Package html provides an HTML template engine for the Fiber web framework.

go get github.com/gofiber/template/html/v2
INSTALL
IMPORT
SIG · GOFIBER-TEMPLATE-H
G
gofiber-template-html-v2
web-frameworkgov2.1.3
harness data pending
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.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
gofiber-template-html-v2 — go get gofiber-template-html-v2 · libregistry