Skip to content

[FR] Safe index alternative #470

Description

@JuniorJPDJ

Right now to be able to safely get value from list/slice you need to do if guard. Else it crashes whole templating. Would be cool to be able to have something similar to dig, but for lists. Just an index but with default value argument.

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