mirror of
https://github.com/golang/go
synced 2024-11-24 09:50:17 -07:00
effective_go: fix brace quotes.
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4932044
This commit is contained in:
parent
e5ddcaeb7b
commit
ebf2b92e9a
@ -2993,12 +2993,13 @@ from data items passed to <code>templ.Execute</code>, in this case the
|
||||
form value.
|
||||
Within the template text (<code>templateStr</code>),
|
||||
double-brace-delimited pieces denote template actions.
|
||||
The piece from the <code></code> executes only if the value of the current data item, called <code>.</code>,
|
||||
The piece from the <code>{{if .}}</code>
|
||||
to <code>{{end}}</code> executes only if the value of the current data item, called <code>.</code> (dot),
|
||||
is non-empty.
|
||||
That is, when the string is empty, this piece of the template is suppressed.
|
||||
</p>
|
||||
<p>
|
||||
The snippet <code>0</code> says to process the data with the function
|
||||
The snippet <code>{{urlquery .}}</code> says to process the data with the function
|
||||
<code>urlquery</code>, which sanitizes the query string
|
||||
for safe display on the web page.
|
||||
</p>
|
||||
|
@ -2945,13 +2945,13 @@ from data items passed to <code>templ.Execute</code>, in this case the
|
||||
form value.
|
||||
Within the template text (<code>templateStr</code>),
|
||||
double-brace-delimited pieces denote template actions.
|
||||
The piece from the <code>{{if .}}</code>
|
||||
to <code>{{end}}</code> executes only if the value of the current data item, called <code>.</code>,
|
||||
The piece from the <code>{{html "{{if .}}"}}</code>
|
||||
to <code>{{html "{{end}}"}}</code> executes only if the value of the current data item, called <code>.</code> (dot),
|
||||
is non-empty.
|
||||
That is, when the string is empty, this piece of the template is suppressed.
|
||||
</p>
|
||||
<p>
|
||||
The snippet <code>{{urlquery .}}</code> says to process the data with the function
|
||||
The snippet <code>{{html "{{urlquery .}}"}}</code> says to process the data with the function
|
||||
<code>urlquery</code>, which sanitizes the query string
|
||||
for safe display on the web page.
|
||||
</p>
|
||||
|
Loading…
Reference in New Issue
Block a user