Scratch space for learning atproto app development
1// @ts-ignore
2import ssr from 'uhtml/ssr'
3import type initSSR from 'uhtml/types/init-ssr'
4import type { Hole } from 'uhtml/types/keyed'
5
6export type { Hole }
7
8export const { html }: ReturnType<typeof initSSR> = ssr()
9
10export function page(hole: Hole) {
11 return `<!DOCTYPE html>\n${hole.toDOM().toString()}`
12}