class Middleman::CoreExtensions::Data::DataObject

def method_missing(path)

def method_missing(path)
  response = nil
  
  @@local_sources ||= {}
  @@callback_sources ||= {}
  
  if @@local_sources.has_key?(path.to_s)
    response = @@local_sources[path.to_s]
  elsif @@callback_sources.has_key?(path.to_s)
    response = @@callback_sources[path.to_s].call()
  else
    file_path = File.join(@app.class.root, @app.class.data_dir, "#{path}.yml")
    if File.exists? file_path
      response = YAML.load_file(file_path)
    end
  end
  
  if response
    recursively_enhance(response)
  end
end