Skip to content

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

Open

Description

@trashhalo

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions