Basics
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user