TILT(1)
π TILT(1) β the tilt manual, bestie edition π
okay so. this is the manual page for tilt, aka your generic interface to multiple Ruby template engines. yes queen, one lil command, ALL the engines. we're doing this together, grab a snack π
β¨ NAME β¨
tilt β generic interface to multiple Ruby template engines π
π¦ SYNOPSIS π¦
tilt <options> <file>
that's it. that's the whole vibe check. <options> go in, <file> goes in, magic comes out β¨
πΈ DESCRIPTION πΈ
so what does it do? it processes the template <file> and writes the output straight to stdout. periodt.
and if you pass no <file> at all, or your <file> is literally just -, then it reads the template from stdin instead, and you have to use the --type option so it knows what kind of template it's looking at. no type, no clue, bestie. π«Ά
π OPTIONS π
here's the whole menu, nothing skipped, all of it iconic:
-l,--listβ list the template engines + their file patterns, then dip out and exit. window shopping only ποΈ-t,--type=<pattern>β use this template engine. required if there's no<file>(see above, i warned you)-y,--layout=<file>β use<file>as a layout template. the outer aesthetic, if you will π-D<name>=<value>β define the variable<name>as<value>. little variable, big main character energy-o,--vars=<ruby>β evaluate<ruby>into a Hash and use that for the variables. yes, ruby-in-ruby, we love a nesting moment πͺ-h,--helpβ show this help message. hi, hello, here's the tea β
π Convert markdown to HTML:
$ tilt foo.markdown > foo.html
markdown in, html out, slay π
π Process ERB template:
$ echo "Answer: <%= 2 + 2 %>" | tilt -t erb
Answer: 4
piping it in from stdin and telling it -t erb because no file = you must declare the type, remember? and boom: Answer: 4 π₯
π Define variables:
$ echo "Answer: <%= 2 + n %>" | tilt --locals="{:n=>40, :x=>0}"
Answer: 42
$ echo "Answer: <%= 2 + n %>" | tilt -Dn=40 -Dx=0
Answer: 42
two ways to feed the variables, one iconic answer: Answer: 42 β¨ (also -Dn=40 -Dx=0 is the short-flag flex, iykyk)
ngl bestie, this whole thing is literally a lil translator between you and every Ruby template engine out there. treat it nice and it treats you nicer π
and that's the whole page!! this was tilt 1.3.2, dated July 2011 β vintage but still serving, fr fr. mwah, go write some templates π¦ππ
π¦ where this page comes from
- debian bookworm: ruby-tilt 2.0.11-2 Β· MIT
- debian trixie: ruby-tilt 2.4.0-3 Β· MIT
- ubuntu jammy: ruby-tilt 2.0.10-2 Β· MIT
- ubuntu noble: ruby-tilt 2.0.11-2 Β· MIT
- ubuntu questing: ruby-tilt 2.4.0-3
- ubuntu resolute: ruby-tilt 2.7.0-1 Β· MIT
- ubuntu stonking: ruby-tilt 2.8.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms