lib/tasks/erb2haml.rake in haml-rails-0.8.1 vs lib/tasks/erb2haml.rake in haml-rails-0.8.2
- old
+ new
@@ -1,8 +1,7 @@
namespace :haml do
+ desc 'Convert html.erb to html.haml each file in app/views'
task :erb2haml do
-
- puts "This task will generate a .html.haml translation of each of the .html.erb files in app/views and its subdirectories."
erb_files = Dir.glob('app/views/**/*.erb').select { |f| File.file? f}
haml_files = Dir.glob('app/views/**/*.haml').select { |f| File.file? f}
if erb_files.empty?
\ No newline at end of file