]> Cypherpunks repositories - gostls13.git/commitdiff
effective_go: fix brace quotes.
authorRob Pike <r@golang.org>
Sun, 21 Aug 2011 22:18:03 +0000 (08:18 +1000)
committerRob Pike <r@golang.org>
Sun, 21 Aug 2011 22:18:03 +0000 (08:18 +1000)
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4932044

doc/effective_go.html
doc/effective_go.tmpl

index 1540baac61ceb68234a1f3cb68be92287e0ee5b2..ec2973a07cb8ebdb757ec161647df266f4d51544 100644 (file)
@@ -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>
index 850ba3aeb592f299954978b02114a3804dda814a..98ef6428653f717b8323806f4752f554de6be8b1 100644 (file)
@@ -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>