EJS Support
SowinskiBraeden opened this issue · 0 comments
SowinskiBraeden commented
Create support for EJS for more manipulatable front end support. For example:
package main
import (
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/template/ejs"
)
func main() {
app := fiber.New(fiber.Config{
Views: ejs.New("./views", ".ejs"),
})
app.Post("/", func (c *fiber.Ctx) error {
return c.Render("index", fiber.Map{
"myVariable": someRandomVariable,
})
})
}
Similar to how the regular html works, but enabling it for EJS