4 ms·
There's the lit-html[1] project, which is still fairly new. It uses tagged template literals to render to the DOM, so on the server side it could fall back to
by reificator 9y ago
There's the lit-html[1] project, which is still fairly new.
It uses tagged template literals to render to the DOM, so on the server side it could fall back to vanilla string interpolation.
[1]: https://github.com/PolymerLabs/lit-html https://github.com/PolymerLabs/lit-html
- allover 9y agoAnd hyperHTML [1] that preceded it and has near identical API. [1] https://github.com/WebReflection/hyperHTML https://github.com/WebReflection/hyperHTML
- reificator 9y agoThanks for the heads up, I've definitely seen that one credited but I thought it used to not use template literals. Clearly it at least does now. EDIT: Yeah, looks like it's always worked that way. Maybe I was thinking of another lib.