Matthew Stobbs
9c35be1fcf
- made multiple components for reuse in templ - going to start on actual data displaying templates
14 lines
221 B
Plaintext
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>
|
|
}
|