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

Issue 4794045: code review 4794045: exp/template: A template can be in one set only. (Closed)

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

Description

exp/template: A template can be in one set only. This simplifies the API and makes it easier to make the template invocation statically secure, at the cost of some minor flexibility.

Patch Set 1 #

Total comments: 3

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -70 lines) Patch
M src/pkg/exp/template/doc.go View 1 2 chunks +11 lines, -13 lines 0 comments Download
M src/pkg/exp/template/exec.go View 1 4 chunks +5 lines, -13 lines 0 comments Download
M src/pkg/exp/template/exec_test.go View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/exp/template/parse.go View 1 2 4 chunks +23 lines, -13 lines 0 comments Download
M src/pkg/exp/template/set.go View 1 3 chunks +9 lines, -29 lines 0 comments Download

Messages

Total messages: 8
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 9 months ago (2011-07-21 03:35:19 UTC) #1
dsymonds
How does this work for sharing templates across pages? For instance, many pages might want ...
12 years, 9 months ago (2011-07-21 03:39:51 UTC) #2
dsymonds
It looks fine in general, though I'm confused by the relationship between a template and ...
12 years, 9 months ago (2011-07-21 03:58:10 UTC) #3
r2
Either parse multiple times or just put them in one set. I'd do the latter ...
12 years, 9 months ago (2011-07-21 03:59:23 UTC) #4
r
Hello golang-dev@googlegroups.com, dsymonds@golang.org, r@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 9 months ago (2011-07-21 04:16:02 UTC) #5
r2
good catch; rethought. PTAL
12 years, 9 months ago (2011-07-21 04:16:08 UTC) #6
dsymonds
LGTM
12 years, 9 months ago (2011-07-21 04:20:33 UTC) #7
r
12 years, 9 months ago (2011-07-21 04:22:09 UTC) #8
*** Submitted as http://code.google.com/p/go/source/detail?r=1bf4e5073561 ***

exp/template: A template can be in one set only.
This simplifies the API and makes it easier to make the template
invocation statically secure, at the cost of some minor flexibility.

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

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