Skip to content

Instantly share code, notes, and snippets.

@botandrose
Created February 4, 2010 08:27
Show Gist options
  • Save botandrose/294450 to your computer and use it in GitHub Desktop.
Save botandrose/294450 to your computer and use it in GitHub Desktop.
#!/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