From ebf2b92e9a7fe7f8de079d8aa76fe88f89dee02b Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 22 Aug 2011 08:18:03 +1000 Subject: [PATCH] effective_go: fix brace quotes. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4932044 --- doc/effective_go.html | 5 +++-- doc/effective_go.tmpl | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/effective_go.html b/doc/effective_go.html index 1540baac61..ec2973a07c 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -2993,12 +2993,13 @@ from data items passed to templ.Execute, in this case the form value. Within the template text (templateStr), double-brace-delimited pieces denote template actions. -The piece from the executes only if the value of the current data item, called ., +The piece from the {{if .}} +to {{end}} executes only if the value of the current data item, called . (dot), is non-empty. That is, when the string is empty, this piece of the template is suppressed.

-The snippet 0 says to process the data with the function +The snippet {{urlquery .}} says to process the data with the function urlquery, which sanitizes the query string for safe display on the web page.

diff --git a/doc/effective_go.tmpl b/doc/effective_go.tmpl index 850ba3aeb5..98ef642865 100644 --- a/doc/effective_go.tmpl +++ b/doc/effective_go.tmpl @@ -2945,13 +2945,13 @@ from data items passed to templ.Execute, in this case the form value. Within the template text (templateStr), double-brace-delimited pieces denote template actions. -The piece from the {{if .}} -to {{end}} executes only if the value of the current data item, called ., +The piece from the {{html "{{if .}}"}} +to {{html "{{end}}"}} executes only if the value of the current data item, called . (dot), is non-empty. That is, when the string is empty, this piece of the template is suppressed.

-The snippet {{urlquery .}} says to process the data with the function +The snippet {{html "{{urlquery .}}"}} says to process the data with the function urlquery, which sanitizes the query string for safe display on the web page.

-- 2.50.0