LoginSignup
31

More than 5 years have passed since last update.

erbをslimに変換する

Last updated at Posted at 2014-10-11

ネットを検索したところ、シェルを利用した方法がいくつか紹介されていましたが、erb2slim単体でも変換できるようです。(html2slim 0.1.0で確認)

# Gemfile
gem 'html2slim'
bundle exec erb2slim app/views app/views 
# -dを付けるとslimに変換した後にerbを削除する
bundle exec erb2slim app/views app/views -d

参考
http://www.mocchiblog.com/?p=14680

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
31