]> Cypherpunks repositories - gostls13.git/commit
exp/template: allow range actions to declare a key and element variable.
authorRob Pike <r@golang.org>
Thu, 14 Jul 2011 03:15:55 +0000 (13:15 +1000)
committerRob Pike <r@golang.org>
Thu, 14 Jul 2011 03:15:55 +0000 (13:15 +1000)
commitfc1f0bd5e90119278f71cb468bb02a4ecf9d37ac
tree58c68051053560ff90c856f1b151d4a1f40c1e80
parentaec89c4c404d408c95ba309d65d7be78260f0045
exp/template: allow range actions to declare a key and element variable.
        {{range $key, $element := pipeline}}
This CL is smaller than it looks due to some rearrangement and renaming.

R=rsc, r
CC=golang-dev
https://golang.org/cl/4709047
src/pkg/exp/template/doc.go
src/pkg/exp/template/exec.go
src/pkg/exp/template/exec_test.go
src/pkg/exp/template/lex.go
src/pkg/exp/template/lex_test.go
src/pkg/exp/template/parse.go
src/pkg/exp/template/parse_test.go