templ.js

Command Overview

templjs provides three primary commands:

Global flags:

Architecture

render

Implementation:

templjs render --template <path> --input <path|-> [options]

Options:

Watch mode behavior:

validate

Implementation:

templjs validate --template <path> [--schema <path>] [--input <path>]

init

Implementation:

templjs init --format <markdown|html|json|yaml> [--output <path>]

Examples

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