共有 0 个贴子
没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > rails-erb-trim-mode |
rails-erb-trim-mode
|
0 | 0 | 7 |
贡献者 | 讨论 | 代码提交 |
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