Multiple pages
This commit is contained in:
15
app/handlers/about.go
Normal file
15
app/handlers/about.go
Normal file
@ -0,0 +1,15 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"templ-tests/app/templates"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func About(c *gin.Context) {
|
||||
pc := templates.PageContext{
|
||||
Title: "Welcome to the demo - About",
|
||||
ActivePage: "about",
|
||||
}
|
||||
templates.About(pc).Render(c, c.Writer)
|
||||
}
|
||||
Reference in New Issue
Block a user