blob: feb72a4b98db474aa9bf9fbac1d0e8239e5f66f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { Node } from "./dom.ts";
import { renderHtml } from "./renderers/html.ts";
// export type RendererType = "html" | "xml";
export type RendererType = "html";
export function render(root: Node, renderer: RendererType): string {
if (renderer === "html") {
return renderHtml(root);
} else {
return renderHtml(root);
}
}
|