tbranyen/diffhtml

Unify render-to-string and core

tbranyen opened this issue · 1 comments

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>'
);

This has been completed locally. Brings in toString.