ace
ace copied to clipboard
documentation to create loop
Is there any documentation to create loop ?
How to iterate variables / create loop in ace
Loops are not a feature of ace but rather a feature of golang html/templates. You can use smth like this:
Say your data passed to the template is []string. Then:
ul
{{ range $k := . }}
li $k
{{ end }}