Skip to content

Instantly share code, notes, and snippets.

@beata
beata / haml-watch
Created December 1, 2011 08:55
Watch and compile all haml files on a directory, like sass --watch
#!/usr/bin/env ruby
# Script to watch a directory for any changes to a haml file
# and compile it.
#
# USAGE: ruby haml_watch.rb <directory_to_watch>
#
# Blake Smith / http://blakesmith.github.com/2010/09/05/haml-directory-watcher.html
#
require 'rubygems'