Sha256: f8705480cf7b2a43f389dc2f57481ba9fa0c07372c9e0e4641fe4a6e21029f4f

Contents?: true

Size: 365 Bytes

Versions: 6

Compression:

Stored size: 365 Bytes

Contents

# gem install haml2slim --nori --nordoc
# ruby views_converter.rb

from = "./app/views/the_comments/haml"
to   = "./app/views/the_comments/slim"

`haml2slim #{from} #{to} --trace`

Dir.glob("#{to}/*.slim") do |slim_file|
  content = File.read slim_file
  content = content.gsub "haml", "slim"

  file = File.open slim_file, "w"
  file.write content
  file.close
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
the_comments-2.2.2 views_converter.rb
the_comments-2.2.1 views_converter.rb
the_comments-2.2.0 views_converter.rb
the_comments-2.1.0 views_converter.rb
the_comments-2.0.1 views_converter.rb
the_comments-2.0.0 views_converter.rb