class Middleman::Sitemap::Resource

def initialize(store, path, source=nil)

def initialize(store, path, source=nil)
  @store       = store
  @app         = @store.app
  @path        = path
  @ignored     = false
  source = Pathname(source) if source && source.is_a?(String)
  @file_descriptor = if source && source.is_a?(Pathname)
    ::Middleman::SourceFile.new(source.relative_path_from(@app.source_dir), source, @app.source_dir, Set.new([:source]), 0)
  else
    source
  end
  @destination_path = @path
  # Options are generally rendering/sitemap options
  # Locals are local variables for rendering this resource's template
  # Page are data that is exposed through this resource's data member.
  # Note: It is named 'page' for backwards compatibility with older MM.
  @metadata = { options: {}, locals: {}, page: {} }
  @page_data = nil
end