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

Kent Sibilev
2006-02-20T14:04:54Z

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, ''-'')

--
Kent
---
http://www.datanoise.com

On 2/20/06, Hugh Sasse <hgs@dmu.ac.uk> wrote:
> Native ERB in ruby, and eruby, seem to lack the -%> feature for
> suppressing trailing newlines.  Thus
> erb -n script
> gives errors.  Where is Rails ERB so I can invoke it directly?
>         Thank you
>         Hugh
>
>
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>