commit | 260991ad5f1cd73ff9f993bb389ac6d7e56fb509 | [log] [tgz] |
---|---|---|
author | Mike Samuel <mikesamuel@gmail.com> | Tue Sep 27 22:08:14 2011 -0700 |
committer | Mike Samuel <mikesamuel@gmail.com> | Tue Sep 27 22:08:14 2011 -0700 |
tree | d6935900ac88f2454c49ae0bcf531cfbff70c39f | |
parent | 71557713b0a7cf53c9c8a80986c89ae4036af74c [diff] |
exp/template/html: do not escape the RHS of assignments In {{$x := . | foo}} {{$x}} the first action is a variable assignment that contributes nothing to the output while the first is a use that needs to be escaped. This CL fixes escapeAction to distinguish assignments from interpolations and to only modify interpolations. R=nigeltao, r CC=golang-dev https://golang.org/cl/5143048