|
|
@ -10,6 +10,12 @@ import ( |
|
|
|
"github.com/gofiber/template/html/v2" |
|
|
|
"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) { |
|
|
|
func RenderPages(pages_path string, target string, layout string) { |
|
|
|
engine := html.New(pages_path, ".html") |
|
|
|
engine := html.New(pages_path, ".html") |
|
|
|
engine.Load() |
|
|
|
engine.Load() |
|
|
|