diff --git a/common/web.go b/common/web.go index 50c4452..9e2622e 100644 --- a/common/web.go +++ b/common/web.go @@ -10,6 +10,12 @@ import ( "github.com/gofiber/template/html/v2" ) +func Page(path string) (func(c *fiber.Ctx) error) { + return func (c *fiber.Ctx) error { + return c.Render("stream", fiber.Map{}) + } +} + func RenderPages(pages_path string, target string, layout string) { engine := html.New(pages_path, ".html") engine.Load()