templjs provides three primary commands:
rendervalidateinitGlobal flags:
-h, --help: show usage/help text--version: print the CLI version-q, --quiet: suppress non-error output-v, --verbose: print diagnostic details--json: machine-readable output envelopesrenderImplementation:
templjs render --template <path> --input <path|-> [options]
Options:
-t, --template <path>-i, --input <path>-o, --output <path>-w, --watch--input-format <json|yaml|toml|xml>--output-format <text|json|html|markdown>--experimental-stream-json--no-validate-input--no-validate-outputWatch mode behavior:
--json --watch emits JSON envelopes for each render/error event.--quiet --watch suppresses non-error output.--verbose --watch keeps diagnostic logging enabled.validateImplementation:
templjs validate --template <path> [--schema <path>] [--input <path>]
initImplementation:
templjs init --format <markdown|html|json|yaml> [--output <path>]
Implementation jump points:
Render to stdout:
templjs render -t examples/markdown-report/template.md.templ -i examples/markdown-report/data.json
Render to file:
templjs render -t template.md.templ -i data.json -o out.md
Watch mode JSON output:
templjs --json render -t template.md.templ -i data.json --watch