Skip to content

Support negative sections #9

Description

@maghoff

Imagined syntax: {{^field}}...{{/field}}

Standard usecase: Render a list, but show something different when that list is empty.

Other imagined usecase: An Option can be iterated over for the Some(_) case, it makes sense to have this syntax work for the None case. Similarly for Result.

When using a Result in a negative section, maybe expose the Err(_) value as {{.}}?

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions