Erubis Users' Guide

1   Installation

  • If you have installed RubyGems, just type gem install --remote erubis.
    $ sudo gem install --remote erubis
    
  • Else install abstract at first, and download erubis_X.X.X.tar.bz2 and install it by setup.rb.
    $ tar xjf abstract_X.X.X.tar.bz2
    $ cd abstract_X.X.X/
    $ sudo ruby setup.rb
    $ cd ..
    $ tar xjf erubis_X.X.X.tar.bz2
    $ cd erubis_X.X.X/
    $ sudo ruby setup.rb
    
  • (Optional) 'contrib/inline-require' enables you to merge 'lib/**/*.rb' into 'bin/erubis'.
    $ tar xjf erubis_X.X.X.tar.bz2
    $ cd erubis_X.X.X/
    $ unset RUBYLIB
    $ contrib/inline-require -I lib bin/erubis > contrib/erubis