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

Issue 4671056: code review 4671056: exp/template: better template invocation (Closed)

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

Description

exp/template: better template invocation 1) Make the value optional ({{template "foo"}}) 2) Allow the template identifier to be a thing of type *Template. The second makes it easy to drop templates in to a set dynamically during invocation.

Patch Set 1 #

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

Total comments: 4

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -15 lines) Patch
M src/pkg/exp/template/exec.go View 1 2 5 chunks +30 lines, -11 lines 0 comments Download
M src/pkg/exp/template/exec_test.go View 2 chunks +3 lines, -0 lines 0 comments Download
M src/pkg/exp/template/parse.go View 3 chunks +9 lines, -2 lines 0 comments Download
M src/pkg/exp/template/parse_test.go View 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/exp/template/set_test.go View 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 6
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 10 months ago (2011-07-09 08:27:44 UTC) #1
dsymonds
http://codereview.appspot.com/4671056/diff/3001/src/pkg/exp/template/exec.go File src/pkg/exp/template/exec.go (right): http://codereview.appspot.com/4671056/diff/3001/src/pkg/exp/template/exec.go#newcode453 src/pkg/exp/template/exec.go:453: // validate guarantees that the value is valid and ...
13 years, 10 months ago (2011-07-09 13:13:57 UTC) #2
r2
On 09/07/2011, at 11:13 PM, dsymonds@golang.org wrote: > > http://codereview.appspot.com/4671056/diff/3001/src/pkg/exp/template/exec.go > File src/pkg/exp/template/exec.go (right): > ...
13 years, 10 months ago (2011-07-09 13:23:31 UTC) #3
r
Hello golang-dev@googlegroups.com, dsymonds@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2011-07-09 13:23:39 UTC) #4
dsymonds
LGTM
13 years, 10 months ago (2011-07-09 13:54:33 UTC) #5
r
13 years, 10 months ago (2011-07-09 21:32:09 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=d44b6e3d0e88 ***

exp/template: better template invocation
1) Make the value optional ({{template "foo"}})
2) Allow the template identifier to be a thing of type *Template.
The second makes it easy to drop templates in to a set dynamically
during invocation.

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

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