erb2haml icon indicating copy to clipboard operation
erb2haml copied to clipboard

Convert/replace specified files

Open volgar1x opened this issue 10 years ago • 1 comments

Hi,

I think it would be nice to have a mode like this

$ rake haml:convert_erbs -- app/views/foo/bar.html.erb

You only give ERB paths you want to convert/replace.

Another mode where confirmation is required could be nice

$ rake haml:convert_erbs --confirm
Do you want to convert "foo/bar.html.erb" ? [Yn] Y
Do you want to convert "foo/baz.html.erb" ? [Yn] n

volgar1x avatar Jan 27 '14 19:01 volgar1x

Hi @Blackrush, if you just want to convert a single file, you might want to take a look at html2haml.

dhl avatar Feb 24 '14 13:02 dhl