package clicktoload
import (
"fmt"
"examples/shared"
)
templ demo(users []user, page int) {
Name |
Email |
ID |
@tbody(users, page)
}
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)
}
}