Sha256: e505421256e85529edaff5adbc007e4cfa483dc186f5aef45edd08fd3efb894c

Contents?: true

Size: 440 Bytes

Versions: 2

Compression:

Stored size: 440 Bytes

Contents

require File.dirname(__FILE__) + '/../lib/bind'

# Execute this file to start the listener, then alter style.css a few times

html  = File.expand_path(File.dirname(__FILE__) + '/demo.html')
style = File.dirname(__FILE__) + '/style.sass'
action = Bind::Actions::RefreshBrowsersHaml.new html, '.', 'Safari'
listener = Bind::Listener.new :event => :change, :files => [style], :interval => 2, :action => action, :debug => $stdout
listener.run!

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
visionmedia-bind-0.0.9 examples/refresh_browsers_haml.rb
visionmedia-bind-0.1.0 examples/refresh_browsers_haml.rb