.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.4. .TH TILT "1" "July 2011" "tilt 1.3.2" "tilt" .SH NAME tilt \- Generic interface to multiple Ruby template engines .SH SYNOPSIS .B tilt \fI \fR .SH DESCRIPTION Process template and write output to stdout. With no or when is '\-', read template from stdin and use the \fB\-\-type\fR option to determine the template's type. .PP Options .TP \fB\-l\fR, \fB\-\-list\fR List template engines + file patterns and exit .HP \fB\-t\fR, \fB\-\-type=\fR Use this template engine; required if no .TP \fB\-y\fR, \fB\-\-layout=\fR Use as a layout template .TP \fB\-D\fR= Define variable as .TP \fB\-o\fR, \fB\-\-vars=\fR Evaluate to Hash and use for variables .TP \fB\-h\fR, \fB\-\-help\fR Show this help message .SS "Convert markdown to HTML:" .IP $ tilt foo.markdown > foo.html .SS "Process ERB template:" .IP $ echo "Answer: <%= 2 + 2 %>" | tilt \fB\-t\fR erb Answer: 4 .SS "Define variables:" .IP $ echo "Answer: <%= 2 + n %>" | tilt \fB\-\-locals=\fR"{:n=>40, :x=>0}" Answer: 42 $ echo "Answer: <%= 2 + n %>" | tilt \fB\-Dn\fR=\fI40\fR \fB\-Dx\fR=\fI0\fR Answer: 42