Skip to content

Instantly share code, notes, and snippets.

@botandrose
Created February 4, 2010 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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