def find(path, type, setting)
      value = nil
      old_scope = nil

      matching_sets(path, type).each do |set|
        if set["values"].key?(setting) && has_precedence?(old_scope, set["scope"])
          value = set["values"][setting]
          old_scope = set["scope"]
        end
      end
      value
    end
def find(path, type, setting)
      value = nil
      old_scope = nil

      matching_sets(path, type).each do |set|
        if set["values"].key?(setting) && has_precedence?(old_scope, set["scope"])
          value = set["values"][setting]
          old_scope = set["scope"]
        end
      end
      value
    end
Finds a default value for a given setting, filtered by path and type

 path - the path (relative to the source) of the page,
 post or :draft the default is used in
 type - a symbol indicating whether a :page,
 a :post or a :draft calls this method

 Returns the default value or nil if none was found