Skip to content

[FR] Safe index alternative #470

@JuniorJPDJ

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.

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