[Rails] Native erb lacks -%>, where is Rails'' erb?

Hugh Sasse
2006-02-20T14:49:05Z

On Mon, 20 Feb 2006, Kent Sibilev wrote:

> It''s a standard library located in /usr/local/lib/ruby/1.8/erb.rb
>
> In order to enable a trim mode -%> you have to instantiate ERB object
> with trim mode parameter like
>
> e = ERB.new(str, nil, ''-'')

Ah, so I need erb -T - file

  -T [trim_mode]   specify trim_mode (0..2, -)

Thank you.   I couldn''t find that before, but trim mode was the
key.
>
> --
> Kent

        Hugh