aboutsummaryrefslogtreecommitdiff
path: root/src/html
diff options
context:
space:
mode:
authorDaniel Theophanes <kardianos@gmail.com>2018-06-21 10:41:26 -0700
committerDaniel Theophanes <kardianos@gmail.com>2018-06-22 08:05:11 +0000
commitbedfa4e1c37bd08063865da628f242d27ca06ec4 (patch)
tree24be31b8f4cecfcfc67c5e245c1210c521643465 /src/html
parent4991bc6257a9e9d922f7b6e29e393d764c4e4295 (diff)
downloadgo-bedfa4e1c37bd08063865da628f242d27ca06ec4.tar.gz
go-bedfa4e1c37bd08063865da628f242d27ca06ec4.zip
text/template/parse: undo breaking API changes
golang.org/cl/84480 altered the API for the parse package for clarity and consistency. However, the changes also broke the API for consumers of the package. This CL reverts the API to the previous spelling, adding only a single new exported symbol. Fixes #25968 Change-Id: Ieb81054b61eeac7df3bc3864ef446df43c26b80f Reviewed-on: https://go-review.googlesource.com/120355 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Rob Pike <r@golang.org> Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/html')
-rw-r--r--src/html/template/escape.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/template/escape.go b/src/html/template/escape.go
index 8517620d3c..f12dafa870 100644
--- a/src/html/template/escape.go
+++ b/src/html/template/escape.go
@@ -142,7 +142,7 @@ func (e *escaper) escape(c context, n parse.Node) context {
// escapeAction escapes an action template node.
func (e *escaper) escapeAction(c context, n *parse.ActionNode) context {
- if len(n.Pipe.Vars) != 0 {
+ if len(n.Pipe.Decl) != 0 {
// A local variable assignment, not an interpolation.
return c
}