Unify render-to-string and core
tbranyen opened this issue · 1 comments
tbranyen commented
Given the very tiny amount of code needed for rendering to string, I'm considering adding this into core. Currently render-to-string only works in Node and is better suited as a top-level API.
import { toString, html } from 'diffhtml';
console.log(
toString(html`<div>${"Hello world"}</div>`) === '<div>Hello world</div>'
);
tbranyen commented
This has been completed locally. Brings in toString
.