Template
1
0
Fork 0
goth.stack/pages/tools.go

38 lines
719 B
Go
Raw Normal View History

2024-02-22 14:14:11 -07:00
package pages
import (
2024-11-03 17:01:48 -06:00
"goth.stack/lib"
2024-02-22 14:14:11 -07:00
"github.com/labstack/echo/v4"
)
type ToolsProps struct {
Tools []lib.CardLink
}
func Tools(c echo.Context) error {
tools := []lib.CardLink{
2024-03-27 14:52:28 -06:00
{
Name: "Server Sent Events Demo",
Description: "Server Sent Events Demo",
Href: "/tools/ssedemo",
Internal: true,
},
2024-02-22 14:14:11 -07:00
{
Name: "Image Resizer",
Description: "Image Resizer Tool",
Href: "/tools/resize",
Internal: true,
},
}
props := ToolsProps{
Tools: tools,
}
// Specify the partials used by this page
partials := []string{"header", "navitems", "cardlinks"}
// Render the template
return lib.RenderTemplate(c.Response().Writer, "base", partials, props)
}