Created
February 4, 2010 08:27
-
-
Save botandrose/294450 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/ruby | |
# a ruby script for compiling haml from serve into html. | |
# to use, run "sudo compile.rb *.haml" | |
# puts all the compiled files into /html | |
ARGV.each do |url| | |
url = url.split('.').first | |
`curl http://localhost:4000/#{url} > ./html/#{url}.html` | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment