๐ [Bug]:
rngallen opened this issue ยท 2 comments
rngallen commented
Bug Description
go get github.com/gofiber/template/html
does not work as expected
github.com/gofiber/template/html: module github.com/gofiber/template@latest found (v1.8.2), but does not contain package github.com/gofiber/template/html
How to Reproduce
just a basic figer app
Expected Behavior
it was supposed to download library from github
Template package Version
2.0.3
Code Snippet (optional)
package main
import (
"log"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/template/html"
)
func main() {
engine := html.New("./layouts", ".html")
app := fiber.New(fiber.Config{
Views: engine,
})
log.Fatal(app.Listen(":3030"))
}
Checklist:
- I agree to follow Fiber's Code of Conduct.
- I have checked for existing issues that describe my problem prior to opening this one.
- I understand that improperly formatted bug reports may be closed without explanation.
efectn commented
Use this: github.com/gofiber/template/html/v2
rngallen commented
Thanks, it work
It should be fixed on official doc too. https://docs.gofiber.io/guide/templates