Sitemap
''')
def write_sitemap(sitemap):
compressout.write_b('
\n')
for url in sitemap:
compressout.write_b('- {}'.format(
url['URL'].replace('&', '&').replace('"', '"'),
pretty(url['description'])
))
if 'subsitemap' in url:
write_sitemap(url['subsitemap'])
compressout.write_b('
\n')
compressout.write_b('
\n')
write_sitemap(sitemapdata.sitemap)
compressout.write_b('''
Other sitemaps
''')
for URL, name in sitemapdata.html_sitemaps:
compressout.write_b('- {}
\n'.format(
URL.replace('&', '&').replace('"', '"'),
pretty(name)
))
compressout.write_b('''