class Middleman::Sitemap::Extensions::Proxies::ProxyManager

def initialize(app)

def initialize(app)
  @app = app
  @proxy_paths = {}
end

def manipulate_resource_list(resources)

Returns:
  • (void) -
def manipulate_resource_list(resources)
  resources + @proxy_paths.map do |key, value|
    p = ::Middleman::Sitemap::Resource.new(
      @app.sitemap,
      key
    )
    p.proxy_to(value)
    p
  end
end

def proxy(path, target)

Returns:
  • (void) -

Parameters:
  • target (String) --
  • path (String) --
def proxy(path, target)
  @proxy_paths[::Middleman::Util.normalize_path(path)] = ::Middleman::Util.normalize_path(target)
  @app.sitemap.rebuild_resource_list!(:added_proxy)
end