pollo/pages/example.go
2024-06-27 13:13:46 -06:00

22 lines
417 B
Go

package pages
import (
"github.com/labstack/echo/v4"
"pollo/lib"
)
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.Response().Writer, "base", partials, props)
}