sitemapb

A sitemap XML builder for Gleam

Package Version Hex Docs

gleam add sitemapb@1
import sitemapb

pub fn main() {
  let site = [
    "https://example.com/one",
    "https://example.com/two",
    "https://example.com/three",
  ]

  // Render it!
  sitemapb.render_basic(site)
}

Further documentation can be found at https://hexdocs.pm/sitemapb and https://www.sitemaps.org/protocol.html.

Search Document