package clicktoload import ( "fmt" "examples/shared" ) templ demo(users []user, page int) { @tbody(users, page)
Name Email ID
} templ tbody(users []user, page int) { for _, u := range users { { u.name } { u.email } { u.id } } @replaceMe(page) } templ replaceMe(page int) { } templ Index(users []user) { @shared.Layout("Click to Load") {

Click to Load

@demo(users, 1) } }