News for hackers. Stuff that matters.
Re:A little bit of plain JavaScript can do a lot by fiddlerwoaroof on Sunday June 21, 2020 @12:51PM (#23593205)
I don’t think it’s actually strings: the tag gets the value of the expression in ${}s and can return whatever sort of object it wants. As I understand it, it basically creates HtmlTemplate objects or some other kind of Fragment: the strings are only there for specifying the tags and static attributes.

See “tagged templates” here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

There are no comments on this comment yet.