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

I don't think, in 30 years with HTML, that I've come across a library or technique that I prefer over string templates. They're so easy. And especially since ES6 has `format ${my_variable}` interpolation, it's even easier!


With ES6 there is actually even more:

    tagFunction`string text ${expression} string text`
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...




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

Search: