Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
binarymax
· 3y ago · 0 comments
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!
Comments
[–]
psychoslave
3y ago
With ES6 there is actually even more:
tagFunction`string text ${expression} string text`
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...