This commit is contained in:
Atridad Lahiji
2023-05-18 20:04:55 -06:00
committed by Atridad Lahiji
parent 84591f3a2d
commit 3d719132f1
96 changed files with 3422 additions and 4793 deletions

22
pages/example.go Normal file
View File

@ -0,0 +1,22 @@
package pages
import (
"atri.dad/lib"
"github.com/labstack/echo/v4"
)
type ExampleProps struct {
ExamplePropText string
}
func Example(c echo.Context) error {
props := ExampleProps{
ExamplePropText: "EXAMPLE TEXT HERE",
}
// Specify the partials used by this page
partials := []string{"header", "navitems"}
// Render the template
return lib.RenderTemplate(c.Response().Writer, "base", partials, props)
}