html2haml

Is there a bash command for converting an entire directory to HAML from HTML?

◇◆丶佛笑我妖孽 提交于 2019-11-30 05:41:42
I'm looking to convert an entire directory of HTML to HAML so that the files have the same name but with a new extension. html2haml file.html.erb file.haml Can I run a loop so that I can convert all these files all at once so that the name is the same just the extension is changed? My files: continue_login.html.erb expired_trial.html.erb expired_trial.mobile.erb login.html.erb login.mobile.erb recover_password.html.erb signup.html.erb trial_expires_soon.html.erb trial_expires_soon.mobile.erb It's not sexy but it's working: for file in $(find . -type f -name \*.html.erb); do html2haml -e ${file

Is there a bash command for converting an entire directory to HAML from HTML?

余生长醉 提交于 2019-11-29 03:42:27
问题 I'm looking to convert an entire directory of HTML to HAML so that the files have the same name but with a new extension. html2haml file.html.erb file.haml Can I run a loop so that I can convert all these files all at once so that the name is the same just the extension is changed? My files: continue_login.html.erb expired_trial.html.erb expired_trial.mobile.erb login.html.erb login.mobile.erb recover_password.html.erb signup.html.erb trial_expires_soon.html.erb trial_expires_soon.mobile.erb