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:
cf. a4afcf002014868841418989b34e804e093b61b2
this is a bit clunky and non-obvious, so we might simply provide a utility function to take care of all that: