go/src/text/template
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
..
parse
testdata
doc.go
example_test.go
examplefiles_test.go
examplefunc_test.go
exec.go html/template: fix crash when escaping incomplete template 2015-03-20 19:57:45 +00:00
exec_test.go text/template: protect against explicit nil in field chains 2015-03-16 22:35:49 +00:00
funcs.go
helper.go
multi_test.go
template.go