work with static partials. Closes #1206

This commit is contained in:
Thomas Reynolds 2014-07-18 10:54:48 -07:00
parent b6951f2729
commit f0603ddf2f
6 changed files with 754 additions and 8 deletions

View file

@ -111,12 +111,12 @@ module Middleman
end
def start_file_watcher
return if @listener or @options[:disable_watcher]
return if @listener || @options[:disable_watcher]
# Watcher Library
require 'listen'
options = {force_polling: @options[:force_polling]}
options = { force_polling: @options[:force_polling] }
options[:latency] = @options[:latency] if @options[:latency]
@listener = Listen.to(Dir.pwd, options) do |modified, added, removed|