Something went wrong. Try again.
Scratch space for learning atproto app development
Something went wrong. Try again.
310 B · 12 lines
TypeScript
at main
12345678910111213// @ts-ignoreimport ssr from 'uhtml/ssr'import type initSSR from 'uhtml/types/init-ssr'import type { Hole } from 'uhtml/types/keyed'
export type { Hole }
export const { html }: ReturnType<typeof initSSR> = ssr()
export function page(hole: Hole) { return `<!DOCTYPE html>\n${hole.toDOM().toString()}`}