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

Issue 5393049: code review 5393049: text/template: refactor set parsing (Closed)

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

Description

text/template: refactor set parsing Parse {{define}} blocks during template parsing rather than separately as a set-specific thing. This cleans up set parse significantly, and enables the next step, if we want, to unify the API for templates and sets. Other than an argument change to parse.Parse, which is in effect an internal function and unused by client code, there is no API change and no spec change yet.

Patch Set 1 #

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -66 lines) Patch
M src/pkg/text/template/exec_test.go View 1 chunk +5 lines, -1 line 0 comments Download
M src/pkg/text/template/parse.go View 2 chunks +4 lines, -10 lines 0 comments Download
M src/pkg/text/template/parse/parse.go View 1 3 chunks +57 lines, -18 lines 0 comments Download
M src/pkg/text/template/parse/parse_test.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/text/template/parse/set.go View 1 chunk +2 lines, -36 lines 0 comments Download
M src/pkg/text/template/set.go View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 5 months ago (2011-11-17 00:04:53 UTC) #1
rsc
On Thu, Nov 17, 2011 at 13:32, <gri@golang.org> wrote: > I seem to be unable ...
12 years, 5 months ago (2011-11-17 21:52:42 UTC) #2
r2
On Nov 17, 2011, at 10:32 AM, gri@golang.org wrote: > I seem to be unable ...
12 years, 5 months ago (2011-11-17 22:21:33 UTC) #3
r
12 years, 5 months ago (2011-11-18 06:53:26 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=aaa96dbb57e4 ***

text/template: refactor set parsing
Parse {{define}} blocks during template parsing rather than separately as a
set-specific thing.
This cleans up set parse significantly, and enables the next step, if we want,
to unify the
API for templates and sets.
Other than an argument change to parse.Parse, which is in effect an internal
function and
unused by client code, there is no API change and no spec change yet.

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

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