Hacker News new | ask | show | jobs
by enjikaka 2231 days ago
In Webact I did a small tagged template literal with createContextualFragment. Very smooth.

https://github.com/enjikaka/webact/blob/master/src/helpers.j... https://github.com/enjikaka/webact/blob/master/src/helpers.j...

  html`<b>Hello world</b>`

returns a document fragment that you can just appendChild with. Super simple.