23 lines
556 B
TypeScript
23 lines
556 B
TypeScript
// import { h } from 'preact'
|
|
// import preactRender from 'preact-render-to-string'
|
|
// import preactRenderJsx from 'preact-render-to-string/jsx'
|
|
|
|
// import App from './components/app.tsx'
|
|
// import Head from './components/head.ts'
|
|
|
|
// export async function render(ctx, pretty) {
|
|
// const vdom = h(App, ctx)
|
|
|
|
// const content = pretty ? preactRenderJsx(vdom, {}, { pretty }) : preactRender(vdom)
|
|
|
|
// const head = Head.rewind()
|
|
|
|
// return {
|
|
// head,
|
|
// content,
|
|
// state: ctx,
|
|
// }
|
|
// }
|
|
|
|
export { default as routes } from './routes.ts'
|