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

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

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

@ysmolski
Copy link
Member

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
Development

No branches or pull requests

3 participants