waffle

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2026 License: MIT Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL