erb1.8(1)

erb1.81

An embedded ruby language interpreter

Usage

erb1.8 [switches] [inputfile]

Overview

erb interprets a Ruby code embedded text file. For example, erb enables you to embed a Ruby code to a HTML file. A Ruby block starts with `<%' and ends with `%>'. erb replaces the block with its output. If `<%' is followed by `=', eRuby replaces the block with a value of the block. If `<%' is followed by `#', the block is ignored as a comment.

Options

-x

print ruby script

-n

print ruby script with line number

-v

enables verbose mode

-d

set debugging flags (set $DEBUG to true)

-r library

load a library

-K kcode

specifies KANJI code-set (euc or sjis) or UTF-8 (utf8)

-S safe_level

set $SAFE (0..4)

-T trim_mode

specify trim_mode (0..2)

-P

disregard the lin which starts in "%"

Releases

Unchanged in 5 releases since Debian 3.1 (Sarge).

  1. 3.1–7

Author

This document stands on eruby(1) which is written by Shugo Maeda <[email protected]>.

From ruby1.8 1.8.7.358-7.1+deb7u3 in Debian 7 (Wheezy). Parsed by carta from the page's man source.