Descriptionexp/template/html: allow quotes on either side of conditionals and dynamic HTML names
This addresses several use cases:
(1) <h{{.HeaderLevel}}> used to build hierarchical documents.
(2) <input on{{.EventType}}=...> used in widgets.
(3) <div {{" dir=ltr"}}> used to embed bidi-hints.
It also makes sure that we treat the two templates below the same:
<img src={{if .Avatar}}"{{.Avatar}}"{{else}}"anonymous.png"{{end}}>
<img src="{{if .Avatar}}{{.Avatar}}{{else}}anonymous.png{{end}}">
This splits up tTag into a number of sub-states and adds testcases.
Patch Set 1 #Patch Set 2 : diff -r 68ba2ebd1645 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 68ba2ebd1645 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 68ba2ebd1645 https://go.googlecode.com/hg/ #
Total comments: 12
Patch Set 5 : diff -r 2e00b068ff36 https://go.googlecode.com/hg/ #
Total comments: 10
Patch Set 6 : diff -r 2e00b068ff36 https://go.googlecode.com/hg/ #Patch Set 7 : diff -r 2e00b068ff36 https://go.googlecode.com/hg/ #
MessagesTotal messages: 7
|