Documentation
¶
Overview ¶
Command waffle renders a React document to a PDF.
Usage:
waffle <input> <out.pdf> [props.json]
The input may be:
- a JSX/TSX React source (.jsx/.tsx/.js/.mjs) — transpiled and executed in-process on the goja JS engine (no Node.js required). An optional props.json is passed to the document's default-exported function.
- a waffle-tree/v1 JSON document (.json) — the pre-serialized element tree, rendered directly.
Either way the Go engine lays it out and paints the PDF: author in React, render with Go.
Click to show internal directories.
Click to hide internal directories.