lib/guard/haml/templates/Guardfile
# Sample guardfile block for Guard::Haml
# You can use some options to change guard-haml configuration
# output: 'public' set output directory for compiled files
# input: 'src' set input directory with haml files
# run_at_start: true compile files when guard starts
# notifications: true send notifictions to Growl/libnotify/Notifu
# haml_options: { ugly: true } pass options to the Haml engine
haml_opts = {
input: 'src'
}
guard :haml, haml_opts do
watch(/^.+(\.html\.haml)$/)
watch(%r{^#{haml_opts[:input]}/([\w\-_]+(\.html)?\.haml)$})
end