Documentation
¶
Overview ¶
Package monolith wraps the monolith CLI (https://github.com/Y2Z/monolith). It accepts a rendered HTML DOM on stdin, inlines every asset as base64 data: URIs, and returns a single self-contained HTML document.
Index ¶
Constants ¶
This section is empty.
Variables ¶
ErrMissing is returned when the monolith binary cannot be found on PATH. Callers (e.g. capturebatch) translate this into a `dependency-missing` per-capture error per RFC 0001.
Functions ¶
func Process ¶
Process pipes dom through `monolith -b <baseURL> -o - -q -M -` and returns the resulting self-contained HTML as a ReadCloser. Output is fully buffered: monolith's asset inlining requires it to read the whole document anyway, so streaming here would buy nothing.
The `-M` (no-metadata) flag is set so the output is deterministic for a given DOM + asset snapshot; without it monolith appends a timestamp/source comment that would defeat content-addressed storage.
Types ¶
This section is empty.
Source Files
¶
- monolith.go