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

Issue 5665044: code review 5665044: html/template: add Clone and AddParseTree. Make text/te... (Closed)

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

Description

html/template: add Clone and AddParseTree. Make text/template's Clone return (*Template, error), not just *Template. Fixes issue 2757.

Patch Set 1 #

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

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

Total comments: 6

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

Total comments: 3

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -14 lines) Patch
M src/pkg/html/template/clone_test.go View 1 2 chunks +106 lines, -1 line 0 comments Download
M src/pkg/html/template/template.go View 1 2 3 4 3 chunks +65 lines, -8 lines 0 comments Download
M src/pkg/text/template/multi_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/text/template/template.go View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 6
nigeltao
Hello r@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 2 months ago (2012-02-14 06:14:08 UTC) #1
r
http://codereview.appspot.com/5665044/diff/2005/src/pkg/html/template/template.go File src/pkg/html/template/template.go (right): http://codereview.appspot.com/5665044/diff/2005/src/pkg/html/template/template.go#newcode114 src/pkg/html/template/template.go:114: if t.escaped { isn't this racy? http://codereview.appspot.com/5665044/diff/2005/src/pkg/html/template/template.go#newcode115 src/pkg/html/template/template.go:115: return ...
12 years, 2 months ago (2012-02-14 06:26:45 UTC) #2
nigeltao
http://codereview.appspot.com/5665044/diff/2005/src/pkg/html/template/template.go File src/pkg/html/template/template.go (right): http://codereview.appspot.com/5665044/diff/2005/src/pkg/html/template/template.go#newcode114 src/pkg/html/template/template.go:114: if t.escaped { On 2012/02/14 06:26:45, r wrote: > ...
12 years, 2 months ago (2012-02-14 07:46:46 UTC) #3
r
http://codereview.appspot.com/5665044/diff/1002/src/pkg/html/template/template.go File src/pkg/html/template/template.go (right): http://codereview.appspot.com/5665044/diff/1002/src/pkg/html/template/template.go#newcode117 src/pkg/html/template/template.go:117: return nil, fmt.Errorf("html/template: cannot call AddParseTree on template %q ...
12 years, 2 months ago (2012-02-14 11:40:19 UTC) #4
r
LGTM
12 years, 2 months ago (2012-02-15 05:11:53 UTC) #5
nigeltao
12 years, 2 months ago (2012-02-15 05:16:42 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=67f27df4c2aa ***

html/template: add Clone and AddParseTree. Make text/template's Clone
return (*Template, error), not just *Template.

Fixes issue 2757.

R=r
CC=golang-dev
http://codereview.appspot.com/5665044
Sign in to reply to this message.

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