A dart package to generate Sitemaps easily. View on pub
final sitemap = new Sitemap();
sitemap.entries.add(new SitemapEntry()
..location = 'https://foo.bar/baz'
..priority = 0.75
..addAlternate('en', 'https://foo.bar/baz')
..addAlternate('fr', 'https://foo.bar/fr/baz')
..addAlternate('de', 'https://de.foo.bar/baz')
..addAlternate('pt-Br', 'https://brazilianfoo.bar/baz'));
print(sitemap.generate());