2023-05-18 20:04:55 -06:00
|
|
|
package pages
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/labstack/echo/v4"
|
2024-06-27 13:13:46 -06:00
|
|
|
"pollo/lib"
|
2023-05-18 20:04:55 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
type HomeProps struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func Home(c echo.Context) error {
|
2024-06-27 13:13:46 -06:00
|
|
|
props := HomeProps{}
|
2023-05-18 20:04:55 -06:00
|
|
|
|
|
|
|
// Specify the partials used by this page
|
2024-06-27 13:13:46 -06:00
|
|
|
partials := []string{"header"}
|
2023-05-18 20:04:55 -06:00
|
|
|
|
|
|
|
// Render the template
|
|
|
|
return lib.RenderTemplate(c.Response().Writer, "base", partials, props)
|
|
|
|
}
|