ArrowJS – Experimental JavaScript library for rendering interfaces declaratively
github.com
github.com
That seems important for anything involving user input.
Edit: Escaping rules also differ on context (HTML, attribute, URIs, script tags, etc.), so it’s not trivial.
> t`<button @click="${() => data.clicks++}">Fired ${() => data.clicks} arrows</button>`
If so, that is impressive, and something I'd love to use!
Edit: I'm asking because I attempted to use template literals for HTML templates and escaping values is the trickiest part. I settled for requiring the caller to tell me what kind of escaping to use (with the default being very conservative).
Is that a bug or am I just not understanding what you're saying?