start theme cup templates
This commit is contained in:
parent
1b6f3e6103
commit
f80c062099
11 changed files with 202 additions and 48 deletions
|
|
@ -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",
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue