Erubis is a pure Ruby implementation of eRuby
Erubis is a pure Ruby implementation of eRuby. It has the following
* Very fast, almost three times faster than ERB and even as fast as
eruby (implemented in C)
* Auto escaping (sanitizing) support
* Auto trimming spaces around '<% %>'
* Embedded pattern changeable (default '<% %>')
* Context object available and easy to combine eRuby template with
* Easy to expand in subclass, for example:
- Print statement support
- Lines starting with percent character ('%') support
- Another embedded pattern support
Erubis supports not only Ruby but also PHP, C, Java, Scheme, Perl, and
compile it into target program code.