pollo/pages/home.go

24 lines
381 B
Go
Raw Permalink Normal View History

2023-05-18 20:04:55 -06:00
package pages
import (
2024-06-27 13:13:46 -06:00
"pollo/lib"
2024-06-27 21:23:51 -06:00
"github.com/labstack/echo/v4"
2023-05-18 20:04:55 -06:00
)
type HomeProps struct {
}
func Home(c echo.Context) error {
2024-07-09 11:59:06 -06:00
// Initialize the page error
pageError := lib.Error{}
2024-07-09 11:10:32 -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
2024-07-09 11:59:06 -06:00
return lib.RenderTemplate(c, "base", partials, props, pageError)
2023-05-18 20:04:55 -06:00
}