Skip to content

text/template/parse: allow {{else if ...}} chains #6085

@rsc

Description

@rsc
The parser can expand the nesting so that there is no new syntax representation, but it
would be nice to avoid piles of {{end}} in else-if chains.

Paul Borman's comment reminded me, but this is something I've wanted for a while too.
There may be an open issue already but I didn't see it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions