2023-05-18 20:04:55 -06:00
|
|
|
package pages
|
|
|
|
|
|
|
|
import (
|
2024-06-27 13:13:46 -06:00
|
|
|
"pollo/lib"
|
2024-07-09 11:10:32 -06:00
|
|
|
|
|
|
|
"github.com/labstack/echo/v4"
|
2023-05-18 20:04:55 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
type ExampleProps struct {
|
|
|
|
ExamplePropText string
|
|
|
|
}
|
|
|
|
|
|
|
|
func Example(c echo.Context) error {
|
2024-07-09 11:59:06 -06:00
|
|
|
// Initialize the page error
|
|
|
|
pageError := lib.Error{}
|
|
|
|
|
2023-05-18 20:04:55 -06:00
|
|
|
props := ExampleProps{
|
|
|
|
ExamplePropText: "EXAMPLE TEXT HERE",
|
|
|
|
}
|
|
|
|
|
|
|
|
// Specify the partials used by this page
|
|
|
|
partials := []string{"header", "navitems"}
|
|
|
|
|
|
|
|
// Render the template
|
2024-07-09 11:59:06 -06:00
|
|
|
return lib.RenderTemplate(c, "base", partials, props, pageError)
|
2023-05-18 20:04:55 -06:00
|
|
|
}
|