• Mike Samuel's avatar
    exp/template/html: allow quotes on either side of conditionals and dynamic HTML names · b4e1ca25
    Mike Samuel authored
    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.
    
    R=nigeltao
    CC=golang-dev
    https://golang.org/cl/5043042
    b4e1ca25
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.ccmd Loading commit data...
Make.clib Loading commit data...
Make.cmd Loading commit data...
Make.common Loading commit data...
Make.inc Loading commit data...
Make.pkg Loading commit data...
all-qemu.bash Loading commit data...
all.bash Loading commit data...
clean.bash Loading commit data...
env.bash Loading commit data...
make.bash Loading commit data...
quietgcc.bash Loading commit data...
run.bash Loading commit data...
sudo.bash Loading commit data...
version.bash Loading commit data...