pollo/pages/dashboard.go

21 lines
341 B
Go
Raw Normal View History

2024-06-27 21:23:51 -06:00
package pages
import (
"pollo/lib"
"github.com/labstack/echo/v4"
)
type DashboardProps struct {
}
func Dashboard(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)
}