start theme cup templates

This commit is contained in:
Zeni Kim 2024-10-07 18:12:28 -05:00
parent 1b6f3e6103
commit f80c062099
11 changed files with 202 additions and 48 deletions

View file

@ -12,13 +12,16 @@ import (
// Show basic template
func Sample(c *core.Context) *core.Response {
// first, include all compoments
type templateData struct {
TheTitle components.Title
PageCard components.PageCard
}
// now fill data of the components
tmplData := templateData{
TheTitle: components.Title{
Label: "Lorem ipsum inside",
PageCard: components.PageCard{
CardTitle: "Framework Goffee",
CardBody: "Powered by Golang",
},
}