ace icon indicating copy to clipboard operation
ace copied to clipboard

documentation to create loop

Open estrados opened this issue 3 years ago • 1 comments

Is there any documentation to create loop ?

How to iterate variables / create loop in ace

estrados avatar Sep 01 '22 00:09 estrados

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 }}

aleybovich avatar Nov 11 '22 03:11 aleybovich