cf. a4afcf0
import { createElement } from "complate-stream";
import BufferedStream from "complate-stream/src/buffered-stream";
let stream = new BufferedStream();
let element = MyMacro();
element(stream, { nonBlocking: true }, () => {
let html = stream.read();
…
});
this is a bit clunky and non-obvious, so we might simply provide a utility function to take care of all that:
stringify(MyMacro, params, ...children).
then(html => …);
cf. a4afcf0
this is a bit clunky and non-obvious, so we might simply provide a utility function to take care of all that: