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: Documentation of block #23520

Closed
gllmflndn opened this issue Jan 23, 2018 · 2 comments
Closed

text/template: Documentation of block #23520

gllmflndn opened this issue Jan 23, 2018 · 2 comments

Comments

@gllmflndn
Copy link

@gllmflndn gllmflndn commented Jan 23, 2018

What version of Go are you using (go version)?

Current documentation: Build version go1.9.2.

What did you see?

It is described that:

{{block "name" pipeline}} T1 {{end}}

is equivalent to:

{{define "name"}} T1 {{end}}
{{template "name" .}}

What did you expect to see instead?

Shouldn't it be equivalent to:

{{define "name"}} T1 {{end}}
{{template "name" pipeline}}
@gopherbot
Copy link

@gopherbot gopherbot commented Feb 18, 2018

Change https://golang.org/cl/94761 mentions this issue: text/template: fix the documentation of the block action

@gopherbot gopherbot closed this in 669676b Feb 21, 2018
@ysmolsky
Copy link
Member

@ysmolsky ysmolsky commented Feb 21, 2018

Thanks @gllmflndn !

@golang golang locked and limited conversation to collaborators Feb 21, 2019
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
3 participants
You can’t perform that action at this time.