shorgru/pkg/tpl/random.templ

13 lines
219 B
Text
Raw Normal View History

2024-10-06 17:04:37 +03:00
package tpl
import (
"sh.org.ru/pkg/model"
)
2024-10-06 17:04:37 +03:00
templ Random(quotes []model.Quote) {
for _, q := range quotes {
@Quote(&q)
2024-10-06 17:04:37 +03:00
}
<a role="button" hx-get="/random" hx-swap="outerHTML">Загрузить ещё...</a>
2024-10-06 17:04:37 +03:00
}