Created
April 26, 2012 23:16
-
-
Save bzerangue/2504052 to your computer and use it in GitHub Desktop.
RECURSIVELY Bash convert HTML to HAML; and also HAML to HTML; sass-convert from css to scss AND back from scss to css
This file contains 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 characters
find . -name "*.haml" | while read i; do haml -f xhtml -q "$i" "${i%.*}.html"; done |
This file contains 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 characters
find . -name "*.ht*" | while read i; do html2haml --xhtml "$i" "${i%.*}.haml"; done |
This file contains 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 characters
find . -name "*.ht*" | while read i; do html2haml --xhtml "$i" "${i%.*}.html.haml"; done |
This file contains 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 characters
find . -name "*.scss" | while read i; do sass --unix-newlines "$i" "${i%.*}.css"; done |
This file contains 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 characters
find . -name "*.css" | while read i; do sass-convert --from css --to scss "$i" "${i%.*}.scss"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.reflection-container
-(1..100).each do |cell|
%a{:class => "reflection-grid-cell reflection-grid-cell-#{cell}", "href" => "#"}
.reflection-content