Skip to content

Instantly share code, notes, and snippets.

@bzerangue
Created April 26, 2012 23:16
Show Gist options
  • Save bzerangue/2504052 to your computer and use it in GitHub Desktop.
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
find . -name "*.haml" | while read i; do haml -f xhtml -q "$i" "${i%.*}.html"; done
find . -name "*.ht*" | while read i; do html2haml --xhtml "$i" "${i%.*}.haml"; done
find . -name "*.ht*" | while read i; do html2haml --xhtml "$i" "${i%.*}.html.haml"; done
find . -name "*.scss" | while read i; do sass --unix-newlines "$i" "${i%.*}.css"; done
find . -name "*.css" | while read i; do sass-convert --from css --to scss "$i" "${i%.*}.scss"; done
@timohkay
Copy link

timohkay commented Apr 3, 2018

.reflection-container
-(1..100).each do |cell|
%a{:class => "reflection-grid-cell reflection-grid-cell-#{cell}", "href" => "#"}
.reflection-content

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment