While the conditional attribute syntax is neat, it does not blend well with standards, and makes tooling such as linters, syntax highlighters and code generators angry to varying degrees. Save for this special case, the template binding syntax appears standard to me.
I would like to discuss the possibility of having an alternate syntax that does not clash with the HTML spec, by making the conditional thingy syntactically part of the attribute value. Examples:
Scratch that, I misread the spec. Now I get it that x-foo?=bar makes the quotation mark part of the attribute name. Sorry for the noise, I'll be pestering non-compliant tools instead :-)
While the conditional attribute syntax is neat, it does not blend well with standards, and makes tooling such as linters, syntax highlighters and code generators angry to varying degrees. Save for this special case, the template binding syntax appears standard to me.
I would like to discuss the possibility of having an alternate syntax that does not clash with the HTML spec, by making the conditional thingy syntactically part of the attribute value. Examples: