Sha256: 4aad5e1185e32ea1954271a93f453284786035c8b2d7c7e8e31115ce40f7aa51

Contents?: true

Size: 1.31 KB

Versions: 101

Compression:

Stored size: 1.31 KB

Contents

tilt(1) -- process templates
============================

## SYNOPSIS

`tilt` `-l`<br>
`tilt` [`-t` <pattern>] [`-y` <file>] [`-D` <name>=<value>] [`-d` <file>]
  [`--vars=`<ruby>] <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`=<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 or JSON from <file> and use for variables
* `--vars`=<ruby>:
  Evaluate <ruby> to Hash and use for variables
* `-h`, `--help`:
  Show this help message

## EXAMPLES

Convert markdown to HTML:

    $ tilt foo.markdown > foo.html

Process ERB template:

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

Define variables:

    $ echo '{"n":40}' > data.json
    $ echo "Answer: <%= 2 + n %>" | tilt -t erb -d data.json
    Answer: 42

    $ 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

## SEE ALSO

m4(1), mustache(1)


Version data entries

101 entries across 100 versions & 19 rubygems

Version Path
logstash-output-scalyr-0.2.1.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn
logstash-output-scalyr-0.2.0 vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn
logstash-output-scalyr-0.2.0.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn
logstash-output-scalyr-0.1.26.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn
logstash-output-scalyr-0.1.25.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn
logstash-output-scalyr-0.1.24.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn
logstash-output-scalyr-0.1.23.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn
logstash-output-scalyr-0.1.22.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn
logstash-output-scalyr-0.1.21.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn
logstash-output-scalyr-0.1.20.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn
logstash-output-scalyr-0.1.19.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn
logstash-output-scalyr-0.1.18.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn
logstash-output-scalyr-0.1.17.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn
logstash-output-scalyr-0.1.16.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn
logstash-output-scalyr-0.1.15.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn
logstash-output-scalyr-0.1.14.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn
logstash-output-scalyr-0.1.13 vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn
logstash-output-scalyr-0.1.12 vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn
logstash-output-scalyr-0.1.11.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn
logstash-output-scalyr-0.1.10.beta vendor/bundle/jruby/2.5.0/gems/tilt-2.0.9/man/tilt.1.ronn