Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
binarymax
on May 26, 2023
|
parent
|
context
|
favorite
| on:
That people produce HTML with string templates is ...
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!
psychoslave
on May 26, 2023
[–]
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: