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

19 lines
330 B
Go

package pages
import (
"github.com/labstack/echo/v4"
"pollo/lib"
)
type HomeProps struct {
}
func Home(c echo.Context) error {
props := HomeProps{}
// Specify the partials used by this page
partials := []string{"header"}
// Render the template
return lib.RenderTemplate(c.Response().Writer, "base", partials, props)
}