# phpman > man > tilt(1)

[TILT(1)](https://www.chedong.com/phpMan.php/man/TILT/1/markdown)                                         tilt                                         [TILT(1)](https://www.chedong.com/phpMan.php/man/TILT/1/markdown)



## NAME
       tilt - Generic interface to multiple Ruby template engines

## SYNOPSIS
       **tilt** _<options>_ _<file>_

## DESCRIPTION
       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=

### -y --layout=
              Use <file> as a layout template

### -D
              Define variable <name> as <value>

### -o --vars=
              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 **--locals=**"{:n=>40, :x=>0}" Answer: 42 $ echo "An‐
              swer: <%= 2 + n %>" | tilt **-Dn**=_40_ **-Dx**=_0_ Answer: 42



tilt 1.3.2                                    July 2011                                      [TILT(1)](https://www.chedong.com/phpMan.php/man/TILT/1/markdown)
