mjmlgo

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 16 Imported by: 0

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

Jump to

Keyboard shortcuts

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