Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text/template: add support for optional comment argument in {{end}} tag #12318

Closed
bruth opened this issue Aug 25, 2015 · 2 comments
Closed

text/template: add support for optional comment argument in {{end}} tag #12318

bruth opened this issue Aug 25, 2015 · 2 comments
Milestone

Comments

@bruth
Copy link

@bruth bruth commented Aug 25, 2015

Such as {{end "loop"}}. The motivation is to make it easier to read where an action ends when there are many. All endable actions close with a generic {{end}} rather than {{endif}} and {{endwith}}, it makes it difficult to read which {{end}} goes with what action.

@ianlancetaylor ianlancetaylor added this to the Unplanned milestone Aug 25, 2015
@adg
Copy link
Contributor

@adg adg commented Sep 17, 2015

I don't think this is a substantial improvement over ``{{end}}{{/* loop */}}`.

@adg adg closed this Sep 17, 2015
@bruth
Copy link
Author

@bruth bruth commented Sep 17, 2015

Thanks, fair enough.

@golang golang locked and limited conversation to collaborators Sep 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.