OS Manuals

/usr/bin/tilt

Generic interface to multiple Ruby template engines

From ruby3.2-tilt 2.9.0-r0 (os), captured 2026-11-05 by running tilt --help (exit 0). permalink

Also provided by 10 other package versions
Usage: tilt <options> <file>
Process template <file> and write output to stdout. With no <file> or
when <file> is '-', read template from stdin and use the --type option
to determine the template's type.

Options
  -l, --list                List template engines + file patterns and exit
  -t, --type=<pattern>      Use this template engine; required if no <file>
  -y, --layout=<file>       Use <file> as a layout template

  -D<name>=<value>          Define variable <name> as <value>
  -d, --define-file=<file>  Load YAML from <file> and use for variables
  --vars=<ruby>             Evaluate <ruby> to Hash and use for variables

  -h, --help                Show this help message

Convert markdown to HTML:
  $ tilt foo.markdown > foo.html

Process ERB template:
  $ echo "Answer: <%= 2 + 2 %>" | tilt -t erb
  Answer: 4

Define variables:
  $ echo "Answer: <%= 2 + n %>" | tilt -t erb --vars="{:n=>40}"
  Answer: 42
  $ echo "Answer: <%= 2 + n.to_i %>" | tilt -t erb -Dn=40
  Answer: 42
Options (7)
OptionDescriptionSource
-l, --listList template engines + file patterns and exithelp
-t, --type patternUse this template engine;help
-y, --layout fileUse <file> as a layout templatehelp
-D name>=<valueDefine variable <name> as <value>help
-d, --define-file fileLoad YAML from <file> and use for variableshelp
--vars rubyEvaluate <ruby> to Hash and use for variableshelp
-h, --helpShow this help messagehelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.