rehtm
rehtm copied to clipboard
Create and hydrate HTML with HTM
this [doesn't work](https://codepen.io/lorean_victor/pen/zYyOzPd?editors=0011), it should: ```js import { html } from 'https://esm.sh/rehtm' document.body.appendChild(html`Hellow ${undefined && 'World!'}`) ```
rehtm handles whitespace differently than HTML itself. This particularly means hydrating HTML generated by other means, even when the string seems exceedingly similar, will not work properly (see [demo](https://codepen.io/lorean_victor/pen/QWBowwz?editors=1011)). However,...
Special characters such as ` `, ` `, etc aren't rendering properly (see [demo](https://codepen.io/lorean_victor/pen/ExpMavg?editors=1010)). This is due to [this issue](https://github.com/developit/htm/issues/234) on [htm](https://github.com/developit/htm).