17 lines
293 B
Go
17 lines
293 B
Go
package handlers
|
|
|
|
import (
|
|
"templ-tests/app/templates"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
var pcAbout templates.PageContext = templates.PageContext{
|
|
Title: "Welcome to the demo - About",
|
|
ActivePage: "about",
|
|
}
|
|
|
|
func About(c *gin.Context) {
|
|
templates.About(pcAbout).Render(c, c.Writer)
|
|
}
|