]> Cypherpunks repositories - gostls13.git/commit
html/template: indirect top-level values before printing
authorRob Pike <r@golang.org>
Wed, 16 Nov 2011 17:32:52 +0000 (09:32 -0800)
committerRob Pike <r@golang.org>
Wed, 16 Nov 2011 17:32:52 +0000 (09:32 -0800)
commitf5db4d05f299c8cf681eae0f1b3faeb3b8df7bdb
treed4b63bc110e9169cd618d28ee27be183674dce16
parent00f9b7680a8481e988b20414699fb25b0030079b
html/template: indirect top-level values before printing
text/template does this (in an entirely different way), so
make html/template do the same. Before this fix, the template
{{.}} given a pointer to a string prints its address instead of its
value.

R=mikesamuel, r
CC=golang-dev
https://golang.org/cl/5370098
src/pkg/html/template/content.go
src/pkg/html/template/escape_test.go
src/pkg/html/template/js.go