Class: Middleman::CoreExtensions::Internationalization::LocalizedPageDescriptor

Inherits:
Struct
  • Object
show all
Defined in:
middleman-core/lib/middleman-core/core_extensions/i18n.rb

Instance Method Summary collapse

Instance Method Details

#execute_descriptor(app, resource_list) ⇒ Object


288
289
290
291
292
# File 'middleman-core/lib/middleman-core/core_extensions/i18n.rb', line 288

def execute_descriptor(app, resource_list)
  r = ::Middleman::Sitemap::ProxyResource.new(app.sitemap, path, source_path)
  r.(locale: locale)
  resource_list.add! r
end