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

Issue 5436080: code review 5436080: text/template: address a couple of issues for html/template (Closed)

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

Description

text/template: address a couple of issues for html/template - allow Lookup to work on uninitialized templates - fix bug in add: can't error after parser is stopped - add Add method for html/template

Patch Set 1 #

Total comments: 4

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

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -1 line) Patch
M src/pkg/text/template/parse/parse.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/text/template/template.go View 1 2 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 9
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 5 months ago (2011-11-28 05:05:44 UTC) #1
adg
http://codereview.appspot.com/5436080/diff/1/src/pkg/text/template/template.go File src/pkg/text/template/template.go (right): http://codereview.appspot.com/5436080/diff/1/src/pkg/text/template/template.go#newcode106 src/pkg/text/template/template.go:106: // Add associates the argument template with t, and ...
13 years, 5 months ago (2011-11-28 05:10:48 UTC) #2
adg
http://codereview.appspot.com/5436080/diff/1/src/pkg/text/template/template.go File src/pkg/text/template/template.go (right): http://codereview.appspot.com/5436080/diff/1/src/pkg/text/template/template.go#newcode114 src/pkg/text/template/template.go:114: return fmt.Errorf("template: redefinition of template %q", arg.name) Shouldn't you ...
13 years, 5 months ago (2011-11-28 05:12:37 UTC) #3
r
http://codereview.appspot.com/5436080/diff/1/src/pkg/text/template/template.go File src/pkg/text/template/template.go (right): http://codereview.appspot.com/5436080/diff/1/src/pkg/text/template/template.go#newcode106 src/pkg/text/template/template.go:106: // Add associates the argument template with t, and ...
13 years, 5 months ago (2011-11-28 07:11:06 UTC) #4
r
Hello golang-dev@googlegroups.com, adg@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 5 months ago (2011-11-28 07:17:41 UTC) #5
rog
http://codereview.appspot.com/5436080/diff/5/src/pkg/text/template/template.go File src/pkg/text/template/template.go (right): http://codereview.appspot.com/5436080/diff/5/src/pkg/text/template/template.go#newcode112 src/pkg/text/template/template.go:112: // for other uses. It seems to me that ...
13 years, 5 months ago (2011-11-28 14:00:39 UTC) #6
r2
right now i'm just trying to get the html/template package working again. details at the ...
13 years, 5 months ago (2011-11-28 17:58:35 UTC) #7
rsc
LGTM This is fine to get html/template working but I agree with Roger that Add(*parse.Tree) ...
13 years, 5 months ago (2011-11-28 18:20:08 UTC) #8
r
13 years, 5 months ago (2011-11-28 18:43:01 UTC) #9
*** Submitted as http://code.google.com/p/go/source/detail?r=8bd51c7d2af1 ***

text/template: address a couple of issues for html/template
- allow Lookup to work on uninitialized templates
- fix bug in add: can't error after parser is stopped
- add Add method for html/template

R=adg, rogpeppe, r, rsc
CC=golang-dev
http://codereview.appspot.com/5436080
Sign in to reply to this message.

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