Skip to content

Commit

Permalink
Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
RealAlexandreAI committed May 19, 2024
1 parent 56c20d7 commit fb636cd
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 54 deletions.
13 changes: 5 additions & 8 deletions component/button_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion component/example_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/emirpasic/gods/v2/maps/linkedhashmap"
)

// nolint
var ExamplePool = linkedhashmap.New[string, templ.Component]()

// RegisterExample
Expand Down
11 changes: 4 additions & 7 deletions component/index_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions component/list.templ
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ templ List(texts []string) {

func init() {
RegisterExample("/list", List([]string{
"ListItem1",
"ListItem2",
"ListItem3",
"ListItem4",
"English, New York, Spanish, Madrid",
"Mandarin, Beijing, French, Paris",
"German, Berlin, Portuguese, Lisbon",
"Russian, Moscow, Japanese, Tokyo",
"Italian, Rome, Arabic, Cairo",
"Korean, Seoul, Hindi, New Delhi",
}))
}
23 changes: 11 additions & 12 deletions component/list_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 7 additions & 10 deletions component/main_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 6 additions & 9 deletions component/textarea_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ func loadHandlers(r *gin.Engine) {

r.GET("/", func(c *gin.Context) {
metaTags := component.MetaTags(
"gowebly, htmx example page, go with htmx",
"Welcome to example! You're here because it worked out.",
"gen-ui-go, htmx, templ",
"Generative UI in Golang.",
)

indexTemplate := component.Layout(
"Welcome to example!",
"Generative UI in Golang.",
metaTags,
)

Expand Down

0 comments on commit fb636cd

Please sign in to comment.