import { renderToString } from "./deps.ts"; import * as rt from "../runtime/deps.ts"; import { Page } from "./routes.ts"; export function render(page: Page, params: Record): string { const props = { params }; const body = renderToString(rt.h(page.component, props)); return `${body}`; }