Sha256: 005ff3d9b03629d86c4b7c5ab58e2856e2a854bdd4f904f993364e5a271c244f
Contents?: true
Size: 454 Bytes
Versions: 7
Compression:
Stored size: 454 Bytes
Contents
# frozen_string_literal: true def bundle_install Bundler.with_unbundled_env { run "bundle install" } end run "bundle add slim-rails" bundle_install if yes?("Would you like to convert your existing *.erb files to *.slim files? [y/n]") run "bundle add html2slim --group 'development'" bundle_install if yes?("Would you like to keep the original *.erb files? [y/n]") run "erb2slim app/views" else run "erb2slim app/views -d" end end
Version data entries
7 entries across 7 versions & 1 rubygems