1
0
mirror of https://github.com/golang/go synced 2024-11-20 02:24:43 -07:00
go/src/text
Rob Pike 11dba2ec2d html/template: fix crash when escaping incomplete template
text/template turned this into an error but html/template crashed.
Refactor text/template.Execute to export a new function,
text/template.DefinedTemplates, so html/template can get the same
helpful error message in this case, and invoke it when there is no
definition for a template being escaped.

Fixes #10204.

Change-Id: I1d04e9e7ebca829bc08509caeb65e75da969711f
Reviewed-on: https://go-review.googlesource.com/7855
Reviewed-by: Russ Cox <rsc@golang.org>
2015-03-20 19:57:45 +00:00
..
scanner all: use "reports whether" in place of "returns true if(f)" 2015-03-18 15:14:06 +00:00
tabwriter
template html/template: fix crash when escaping incomplete template 2015-03-20 19:57:45 +00:00