class

Marten::SEO::SitemapHandler

Inherits Marten::Handlers::Base < Marten::Handlers::XFrameOptions < Marten::Handlers::ContentSecurityPolicy < Marten::Handlers::Session < Marten::Handlers::RequestForgeryProtection < Marten::Handlers::Flash < Marten::Handlers::Cookies < Marten::Handlers::ExceptionHandling < Marten::Handlers::Callbacks < Marten::Core::DebugModeLoggable < Reference < Object

Emits sitemap.xml. Iterates the PageRegistry, emitting one <url> per locale for each entry, each carrying the full set of xhtml:link hreflang alternates plus an x-default pointing at the default-locale URL. Entries whose route cannot be reversed in any locale are silently skipped.

Instance methods

get

Handles a GET HTTP request and returns a Marten::HTTP::Response object.

The default implementation will return a 405 (not allowed) response.