Critical or Security advisories for 2.7.0
This version doesn't have any advisory. Want to report one?
Changelog for 2.7.0
date: 2011-04-01 enhancements: - | New option ':bufvar' supported to specify buffer variable name. ex: input = "Hello !" eruby = Erubis::Eruby.new(input) puts eruby.src #=> _buf = ''; _buf << "Hello "; _buf << ( name ).to_s; _buf << '!'; eruby = Erubis::Eruby.new(input, :bufvar=>'@_out') puts eruby.src #=> @_out = ''; @_out << 'Hello '; @_out << ( name ).to_s; @_out << '!'; - | New enhancer 'PrefixedLineEnhancer' which is a customizable version of PercentLineEnhancer. The difference between PrefixedLineEnhancer and PercentLineEnhancer is: * You can indent Ruby statetment lines starting with '%' * You can specify prefix character by :prefixchar option. ex: class MyEruby < Erubis::Eruby include Erubis::PrefixedLineEnhancer end input = <
% for item in @items
%% you can indent '%' lines
'; for item in @items
_buf << '
- '; _buf << ( item ).to_s; _buf << ' '; end % you can indent '%' lines _buf << '
Dependencies for 2.7.0
|This version doesn't have runtime dependencies.|
My projects using erubis
|You should be logged in to see which of your projects use erubis.|