class Middleman::CoreExtensions::Data

def start_watching(dir)

def start_watching(dir)
  @original_data_dir = dir
  # Tell the file watcher to observe the :data_dir
  @watcher = app.files.watch :data,
                             path: File.join(app.root, dir),
                             only: DATA_FILE_MATCHER
  # Setup data files before anything else so they are available when
  # parsing config.rb
  app.files.on_change(:data, &@data_store.method(:update_files))
end