| > You said that tagged templates require needless updates I never said needless > that "string concatenation" is the only thing they can do It's not what "they" need to do. It's what you, or the library using them needs to do. > Now we are agreeing that that's not true If you invent something that I never said, then yes, we can both agree it's not true. > How is it "objectively false" that Lit mixes regular HTML with data binding? Once again that is not what I said. The objectively false statement is that it's "regular HTML". Lit is a HTML-like DSL because none of this is "regular HTML" because those attributes are invalid in regular HTML: html`<div ?hidden=${!show}></div>`
html`<input .value=${value}>`
html`<button @click=${this._clickHandler}>Go</button>`
And, on top of that it even adds constraints to tagged literals themselves: // Valid JS, and valid tagged literals. Invalid Lit
<${tagName}></${tagName}>
> Are we talking at cross-purposes or are we trying to say the same thing two different waysNo. You're inventing things that I never said or implied and arguing against those inventions. |
You can definitely mix data binding with regular HTML. It might be "invalid" according to a spec that makes no difference. The point of all of this is to write apps that work and can be debugged.
What is the rallying cry against Lit, exactly?