Templates

Nomatron is in early access. Some advanced workflows may not be covered in the public docs.

This file covers the templates command family.

Commands

  • nomatron templates render
  • nomatron templates render-git

When To Use Them

  • Use render when you want to preview a raw template string or local template file.
  • Use render-git when you want Nomatron to fetch the configured template source from Git and render it with current config.

How To Use Them

Render inline template input:

bash
nomatron templates render \
  --organization acme \
  --app api \
  --job template \
  --template 'job "demo" {}'

Render from a file:

bash
nomatron templates render \
  --organization acme \
  --app api \
  --job template \
  --file ./nomatron.tpl

Examples

Render using the configured Git source:

bash
nomatron templates render-git \
  --organization acme \
  --app api \
  --job template

Render for a specific environment in dry-run mode:

bash
nomatron templates render-git \
  --organization acme \
  --app api \
  --job template \
  --environment prod \
  --dry-run