pollo/pages/home.go

21 lines
313 B
Go
Raw 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: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:10:32 -06:00
return lib.RenderTemplate(c, "base", partials, props)
2023-05-18 20:04:55 -06:00
}