Rails ERB trim mode pluginERB template system has the following possible values for its attribute 'trim_mode':
% enables Ruby code processing for lines beginning with %
<> omit newline for lines starting with
> omit newline for lines ending in %>The plugin adds the "%" capability. Once installed, the code in the ERB (rhtml) files can be written like this:
% array = (1..10).to_a
% array.each do |element|
% endInstallationUNIX: ./script/plugin install http://rails-erb-trim-mode.googlecode.com/svn/trunk/erb_trim_mode
Windows: ruby script\plugin install http://rails-erb-trim-mode.googlecode.com/svn/trunk/erb_trim_mode
30 Day Summary Apr 23 2013 — May 23 2013
|
12 Month Summary May 23 2012 — May 23 2013
|
Copyright
©
2013
Black Duck Software, Inc.
and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a
Creative Commons Attribution 3.0 Unported License
. Ohloh
®
and the Ohloh logo are trademarks of
Black Duck Software, Inc.
in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.