This commit is contained in:
Eden Kirin
2024-02-01 21:50:21 +01:00
parent 725e127881
commit 15ba332ae5
6 changed files with 102 additions and 25 deletions

View File

@ -3,7 +3,7 @@ package handlers
import (
"templ-tests/app/templates"
"github.com/gin-gonic/gin"
"github.com/gofiber/fiber/v2"
)
var pcAbout templates.PageContext = templates.PageContext{
@ -11,6 +11,7 @@ var pcAbout templates.PageContext = templates.PageContext{
ActivePage: "about",
}
func About(c *gin.Context) {
templates.About(pcAbout).Render(c, c.Writer)
func About(f *fiber.Ctx) error {
Render(f, templates.About(pcAbout))
return nil
}