]> Cypherpunks repositories - gostls13.git/commit
exp/template: static check for defined variables.
authorRob Pike <r@golang.org>
Mon, 11 Jul 2011 00:01:15 +0000 (10:01 +1000)
committerRob Pike <r@golang.org>
Mon, 11 Jul 2011 00:01:15 +0000 (10:01 +1000)
commite7030e7fef46244eb5e0b50a474d95fde1b2c21f
tree0337b982ca61bc8111a711c395f1038947986762
parent1fe9c9a78f1fe1f0d59428c2475053dd22a6c0fd
exp/template: static check for defined variables.
Worth catching at parse time rather than execution. Plus it's really easy.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4641100
src/pkg/exp/template/exec_test.go
src/pkg/exp/template/parse.go
src/pkg/exp/template/parse_test.go