|
text/template: new, simpler API
The Set type is gone. Instead, templates are automatically associated by
being parsed together; nested definitions implicitly create associations.
Only associated templates can invoke one another.
This approach dramatically reduces the breadth of the construction API.
For now, html/template is deleted from src/pkg/Makefile, so this can
be checked in. Nothing in the tree depends on it. It will be updated next.
Total comments: 17
Total comments: 6
Total comments: 2
Total comments: 11
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+500 lines, -582 lines) |
Patch |
 |
M |
doc/codelab/wiki/final.go
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
doc/codelab/wiki/final-noclosure.go
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
doc/codelab/wiki/final-noerror.go
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
doc/codelab/wiki/final-parsetemplate.go
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
doc/codelab/wiki/final-template.go
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
doc/codelab/wiki/index.html
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
doc/tmpltohtml.go
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/Makefile
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/text/template/Makefile
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
src/pkg/text/template/doc.go
|
View
|
1
|
3 chunks |
+46 lines, -34 lines |
0 comments
|
Download
|
 |
M |
src/pkg/text/template/exec.go
|
View
|
1
2
3
4
|
5 chunks |
+15 lines, -20 lines |
0 comments
|
Download
|
 |
M |
src/pkg/text/template/exec_test.go
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+24 lines, -13 lines |
0 comments
|
Download
|
 |
M |
src/pkg/text/template/funcs.go
|
View
|
|
3 chunks |
+6 lines, -11 lines |
0 comments
|
Download
|
 |
M |
src/pkg/text/template/helper.go
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+60 lines, -193 lines |
0 comments
|
Download
|
 |
M |
src/pkg/text/template/multi_test.go
|
View
|
1
2
3
4
5
6
7
8
9
|
6 chunks |
+122 lines, -110 lines |
0 comments
|
Download
|
 |
R |
src/pkg/text/template/parse.go
|
View
|
|
1 chunk |
+0 lines, -83 lines |
0 comments
|
Download
|
 |
M |
src/pkg/text/template/parse/parse.go
|
View
|
1
2
|
5 chunks |
+21 lines, -9 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/template.go
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+188 lines, -93 lines |
0 comments
|
Download
|
 |
M |
src/pkg/text/template/testdata/tmpl1.tmpl
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/text/template/testdata/tmpl2.tmpl
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 30
|