]> Cypherpunks repositories - gostls13.git/commit
exp/template: fixes and updates.
authorRob Pike <r@golang.org>
Wed, 6 Jul 2011 04:46:41 +0000 (14:46 +1000)
committerRob Pike <r@golang.org>
Wed, 6 Jul 2011 04:46:41 +0000 (14:46 +1000)
commit9495dd31d22ada490414265e4c3c1325b70ba06d
tree5ed1cb764b4c9d06bd8095f0ca14362f3e95da32
parentd45ba2c146e5861569a34f44907fae1386b238ab
exp/template: fixes and updates.
- fix line numbers - forgot to update state.line during execution
- add a comment convention {{/* comment */}}
- set.Template returns the named template in the set
- set.Execute executes the named template in the set
- use a local methodByName so this package can be used with earlier release of reflect.
- use initial cap to detect exported names

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4668054
src/pkg/exp/template/exec.go
src/pkg/exp/template/lex.go
src/pkg/exp/template/lex_test.go
src/pkg/exp/template/parse.go
src/pkg/exp/template/set.go