Extensible Markup Builder

Package Version Hex Docs

A tiny XML builder for Gleam.

let html = 
  x("greeting", [], [text("Hello, Joe!")])
  |> render
  |> string_builder.to_string
assert html == "<greeting>Hello, Joe!</greeting>"

This package doesn’t do much. If you’d like more features, check out these alternatives:

Installation

gleam add xmb

The documentation can be found at https://hexdocs.pm/xmb.

Search Document