Sha256: aa579469d6a5ce7620e2ffb10e8dccaa87bb616284b471257cefca2f18fa28a5
Contents?: true
Size: 332 Bytes
Versions: 15
Compression:
Stored size: 332 Bytes
Contents
xml.instruct! :xml, :version => "1.0" xml.urlset(:xmlns => "http://www.sitemaps.org/schemas/sitemap/0.9") do for url in item.urls.call(self) xml.url do xml.loc url_for(url[:url]) xml.lastmod url[:lastmod].strftime('%Y-%m-%d') if url[:lastmod] xml.priority url[:priority] if url[:priority] end end end
Version data entries
15 entries across 15 versions & 1 rubygems