pollo/pages/example.go
2024-07-09 11:10:32 -06:00

23 lines
400 B
Go

package pages
import (
"pollo/lib"
"github.com/labstack/echo/v4"
)
type ExampleProps struct {
ExamplePropText string
}
func Example(c echo.Context) error {
props := ExampleProps{
ExamplePropText: "EXAMPLE TEXT HERE",
}
// Specify the partials used by this page
partials := []string{"header", "navitems"}
// Render the template
return lib.RenderTemplate(c, "base", partials, props)
}