Created
March 14, 2009 18:42
-
-
Save altamic/79142 to your computer and use it in GitHub Desktop.
Revisions
-
altamic revised this gist
Nov 21, 2009 . 1 changed file with 14 additions and 14 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1,15 @@ #! /bin/bash # erb2haml # by Michelangelo Altamore # Obtains a file list having an html.erb extension # under the current dir and convert each file # to haml format with html.haml extension. # It requires haml gem. for erb_file in `find . -name *.html.erb`; do if [ -f $erb_file ] ; then name=${erb_file%\.html.erb}; html2haml -e ${erb_file} > ${name}.html.haml; fi; done -
altamic revised this gist
Mar 14, 2009 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,8 +2,8 @@ # erb2haml # by Michelangelo Altamore # Obtains a file list having an html.erb extension # under the current dir and convert each file # to haml format with html.haml extension. # It requires haml gem. -
altamic created this gist
Mar 14, 2009 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ #! /bin/bash # erb2haml # by Michelangelo Altamore # Obtain a file list having a html.erb extension # under the current dir and conver each file # to haml format with html.haml extension. # It requires haml gem. for erb_file in `find . -name *.html.erb`; do if [ -f $erb_file ] ; then name=${erb_file%\.html.erb}; html2haml ${erb_file} > ${name}.html.haml; fi; done