]> Cypherpunks repositories - gostls13.git/commit
html/template: export the parse.Tree for the escaped template
authorRob Pike <r@golang.org>
Wed, 4 Sep 2013 22:23:11 +0000 (08:23 +1000)
committerRob Pike <r@golang.org>
Wed, 4 Sep 2013 22:23:11 +0000 (08:23 +1000)
commit80f39f7b73fb3353b36014d0c97abc7b2d1bc555
tree0b798f151b2331e56958b0ec7455c941228ff2df
parent2b44b36487a341fc2a8a23f8b35113bd4958af92
html/template: export the parse.Tree for the escaped template
The underlying parse tree is visible in text/template, so it should be visible here.
Done by copying the underlying *parse.Tree up to the top level of the struct, and then making sure it's kept up to date.
Fixes #6318.

R=mikesamuel
CC=golang-dev
https://golang.org/cl/13479044
src/pkg/html/template/escape.go
src/pkg/html/template/escape_test.go
src/pkg/html/template/template.go