-
What this package is HTML/CSS renderer for Flux RenderDocumentIR.
-
When you use it Use it when you need to turn Render IR into HTML/CSS for the viewer or export pipelines.
-
Install
pnpm add @flux-lang/render-html- Basic usage
import { parseDocument, renderDocumentIR } from "@flux-lang/core";
import { renderHtml } from "@flux-lang/render-html";
const src = `
document {
meta { version = "0.2.0"; }
body { page p1 { text t1 { content = "Hello"; } } }
}
`;
const doc = parseDocument(src);
const ir = renderDocumentIR(doc);
const { html, css } = renderHtml(ir);- Reference
- Entry point:
renderHtml,renderSlotMap(seesrc/index.ts)
-
How it relates to IR/runtime It consumes
RenderDocumentIRand does not advance runtime state itself. -
Gotchas & troubleshooting
- Use
renderDocumentIR(notrenderDocument) to get stable node IDs required for slot patching.
-
Versioning / compatibility notes TBD / Not yet implemented.
-
Links
- Root Flux manual:
../../README.md - Source:
src/