Convert Erb to Slim directly with REGEXP.
MIT License
The most stupid ERB to Slim Converter.
Convert html.erb
to html.slim
directly with REGEXP.
Install via Rubygems
$ gem install erb_to_slim
OR ...
Add to your Gemfile
gem 'erb_to_slim'
Goto your's project views directory.
$ erb_to_slim
This will convert all *.html.erb
to *.html.slim
under current directory recursively.
old file will backup as *.html.erb.bak
.
You need Ruby 1.9+ to support the newest regular expression syntax.
See CHANGELOG for details.
gem install --dev erb_to_slim
or bundle
.git checkout -b my-new-feature
.git commit -am 'Add some feature'
.git push origin my-new-feature
.Released under the MIT license, See LICENSE for details.