Hacker News new | past | comments | ask | show | jobs | submit login

That's rather trivial with Deno.run, here I just wrote a gist for that out of curiosity: https://gist.github.com/zandaqo/93004fb265146a95aadb28ec851a...



Thank you for posting -- I had never heard of tagged template literals!

Reading the docs [1], it appears there is a `raw` property which might make this even simpler?

[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...


`raw` would allow us to pass the input as is without escaping it using JS rules, but otherwise the code would remain the same, we still have to "stitch" both arrays together with the loops.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: