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