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

Issue 5434077: code review 5434077: html/template: update to new template API (Closed)

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

Description

html/template: update to new template API Not quite done yet but enough is here to review. Embedding is eliminated so clients can't accidentally reach methods of text/template.Template that would break the invariants. TODO: two test cases still fail in TestErrors; help requested. TODO later: Add and Clone are unimplemented. TODO later: address issue 2349

Patch Set 1 #

Patch Set 2 : diff -r b4081c57ba32 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 5b38525d1497 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 5b38525d1497 https://go.googlecode.com/hg/ #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -231 lines) Patch
M src/pkg/Makefile View 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/html/template/clone_test.go View 1 3 chunks +17 lines, -15 lines 2 comments Download
M src/pkg/html/template/escape.go View 1 2 3 8 chunks +19 lines, -28 lines 0 comments Download
M src/pkg/html/template/escape_test.go View 1 5 chunks +16 lines, -20 lines 2 comments Download
M src/pkg/html/template/template.go View 1 2 3 1 chunk +159 lines, -168 lines 5 comments Download

Messages

Total messages: 10
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 8 months ago (2011-11-28 05:07:57 UTC) #1
r
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 8 months ago (2011-11-28 18:41:52 UTC) #2
r2
This is ready for proper review now. The TODOs can be done in another CL. ...
13 years, 8 months ago (2011-11-28 18:43:47 UTC) #3
rsc
LGTM The two commented out test failures are because it says {{define "z"}}...{{end}}. If you ...
13 years, 8 months ago (2011-11-30 22:34:08 UTC) #4
rsc
I have already clpatched and fixed the tests (to figure out what was wrong), so ...
13 years, 8 months ago (2011-11-30 22:41:30 UTC) #5
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=f73733f21799 *** html/template: update to new template API Not quite done yet ...
13 years, 8 months ago (2011-11-30 22:42:22 UTC) #6
r2
On Nov 30, 2011, at 2:34 PM, Russ Cox wrote: > LGTM > > The ...
13 years, 8 months ago (2011-11-30 22:50:37 UTC) #7
MikeSamuel
http://codereview.appspot.com/5434077/diff/4006/src/pkg/html/template/clone_test.go File src/pkg/html/template/clone_test.go (right): http://codereview.appspot.com/5434077/diff/4006/src/pkg/html/template/clone_test.go#newcode56 src/pkg/html/template/clone_test.go:56: d.text.Root = cloneList(s.text.Root) Ok. d's root still depends on ...
13 years, 8 months ago (2011-12-05 22:30:16 UTC) #8
MikeSamuel
http://codereview.appspot.com/5434077/diff/4006/src/pkg/html/template/escape_test.go File src/pkg/html/template/escape_test.go (right): http://codereview.appspot.com/5434077/diff/4006/src/pkg/html/template/escape_test.go#newcode933 src/pkg/html/template/escape_test.go:933: /* TODO THESE TWO FAIL On 2011/12/05 22:30:17, MikeSamuel ...
13 years, 8 months ago (2011-12-05 23:36:12 UTC) #9
r
13 years, 8 months ago (2011-12-06 19:05:56 UTC) #10
http://codereview.appspot.com/5434077/diff/4006/src/pkg/html/template/templat...
File src/pkg/html/template/template.go (right):

http://codereview.appspot.com/5434077/diff/4006/src/pkg/html/template/templat...
src/pkg/html/template/template.go:198: }
yes. if you have a better approach, please let me know.
Sign in to reply to this message.

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