Documentation
¶
Overview ¶
Command mjmlgo compiles MJML documents to HTML.
The command surface follows the reference mjml CLI: files (or glob patterns) are read with -r or as positional arguments, -i compiles standard input, HTML goes to standard output until -o names a file or directory, -v validates without writing, and -c passes renderer configuration. Two differences are deliberate. Output is always compact, because that is the only form this implementation emits; the reference CLI beautifies standard output by default. Validation failures abort a render instead of only warning, so a document the reference CLI renders with warnings on stderr fails here.
Exit codes match the reference CLI: 0 for success, 1 for a command-line or validation error, 2 when some input failed to render.
Install it with
go install github.com/julez-dev/mjmlgo/cmd/mjmlgo@latest