Skip to content

Support negative sections #9

@maghoff

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 {{.}}?

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