Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

documentation to create loop #86

Open
estrados opened this issue Sep 1, 2022 · 1 comment
Open

documentation to create loop #86

estrados opened this issue Sep 1, 2022 · 1 comment

Comments

@estrados
Copy link

estrados commented Sep 1, 2022

Is there any documentation to create loop ?

How to iterate variables / create loop in ace

@aleybovich
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants