clustvirt/view/components/contentlist.templ
Matthew Stobbs 9c35be1fcf really liking templ
- made multiple components for reuse in templ
- going to start on actual data displaying templates
2024-03-14 21:56:49 -06:00

14 lines
221 B
Plaintext

package components
import "fmt"
templ ContentList(listImage string, items []string) {
<ul class={
"list-inside",
fmt.Sprintf("list-image-%s", listImage) }>
for _, li := range items {
<li>{ li }</li>
}
</ul>
}