go/src/html/template
Ian Lance Taylor e60cffa4ca html/template: attach functions to namespace
The text/template functions are stored in a data structure shared by
all related templates, so do the same with the original, unwrapped,
functions on the html/template side.

For #39807
Fixes #43295

Change-Id: I9f64a0a601f1151c863a2833b5be2baf649b6cef
Reviewed-on: https://go-review.googlesource.com/c/go/+/279492
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
2021-01-07 17:51:29 +00:00
..
testdata html/template, text/template: add ParseFS 2020-10-20 18:41:14 +00:00
attr.go
attr_string.go
clone_test.go all: update references to symbols moved from io/ioutil to io 2020-10-20 18:41:18 +00:00
content.go
content_test.go html/template: add tests from text/template 2020-07-14 16:54:25 +00:00
context.go
css.go
css_test.go
delim_string.go
doc.go
element_string.go
error.go
escape.go text/template: add CommentNode to template parse tree 2020-08-28 21:45:12 +00:00
escape_test.go encoding/json: revert "add "json: " prefix to SyntaxError messages" 2020-12-01 22:51:45 +00:00
example_test.go
examplefiles_test.go all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00
exec_test.go html/template: attach functions to namespace 2021-01-07 17:51:29 +00:00
html.go
html_test.go
js.go
js_test.go
jsctx_string.go
multi_test.go html/template, text/template: add ParseFS 2020-10-20 18:41:14 +00:00
state_string.go
template.go html/template: attach functions to namespace 2021-01-07 17:51:29 +00:00
template_test.go text/template: add CommentNode to template parse tree 2020-08-28 21:45:12 +00:00
transition.go
transition_test.go
url.go
url_test.go
urlpart_string.go