Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(260)

Issue 13479044: code review 13479044: html/template: export the parse.Tree for the escaped te... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by r
Modified:
11 years, 8 months ago
Reviewers:
MikeSamuel
CC:
MikeSamuel, golang-dev
Visibility:
Public.

Description

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 issue 6318.

Patch Set 1 #

Patch Set 2 : diff -r 3ec3ff3de654 https://code.google.com/p/go/ #

Total comments: 1

Patch Set 3 : diff -r 6828de30a735 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -1 line) Patch
M src/pkg/html/template/escape.go View 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/html/template/escape_test.go View 1 chunk +4 lines, -0 lines 0 comments Download
M src/pkg/html/template/template.go View 1 6 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 3
r
Hello mikesamuel@gmail.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 8 months ago (2013-09-04 06:38:24 UTC) #1
MikeSamuel
LGTM https://codereview.appspot.com/13479044/diff/4001/src/pkg/html/template/template.go File src/pkg/html/template/template.go (right): https://codereview.appspot.com/13479044/diff/4001/src/pkg/html/template/template.go#newcode26 src/pkg/html/template/template.go:26: Tree *parse.Tree gofmt. These lines are indented with ...
11 years, 8 months ago (2013-09-04 14:49:26 UTC) #2
r
11 years, 8 months ago (2013-09-04 22:23:22 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=e9fdda3cdd55 ***

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 issue 6318.

R=mikesamuel
CC=golang-dev
https://codereview.appspot.com/13479044
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b