]> Cypherpunks repositories - gostls13.git/commit
exp/template: tweak behavior of booleans.
authorRob Pike <r@golang.org>
Wed, 13 Jul 2011 21:59:04 +0000 (07:59 +1000)
committerRob Pike <r@golang.org>
Wed, 13 Jul 2011 21:59:04 +0000 (07:59 +1000)
commit469e3331069639fd1592593940febe0aacc6d40c
treebe9d9bf46352d0bd9dcc3f89667f5f1077b545ea
parentc3344d61bd99eb00b61764e5500e7f37015e0864
exp/template: tweak behavior of booleans.
Russ suggested this technique, making the "and" and "or" functions handier.
But it's hacky, and I can be talked out of it.

R=dsymonds, rsc
CC=golang-dev
https://golang.org/cl/4698044
src/pkg/exp/template/doc.go
src/pkg/exp/template/exec.go
src/pkg/exp/template/exec_test.go
src/pkg/exp/template/funcs.go