Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



And hyperHTML [1] that preceded it and has near identical API.

[1] https://github.com/WebReflection/hyperHTML


Thanks 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: