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

docs on :for directive are missing information on index modifiers #634

Open
trashhalo opened this issue Aug 9, 2022 · 0 comments
Open

Comments

@trashhalo
Copy link

https://surface-ui.org/template_syntax

:for - Iterates over a list (generator) and renders the content of the tag (or component) for each item in the list.

But reading the test cases it clearly supports a handful of modifiers for accessing indexes. It would be nice if that was listed in the documentation and a few examples provided.

https://github.com/surface-ui/surface/blob/main/test/surface/integrations/directives_test.exs#L533-L535

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

1 participant