domu

Package Version Hex Docs

DOM library for Gleam

gleam add domu
import domu/document
import domu/node

pub fn main() {
  let doc = document.document()
  let body = doc |> document.body
  let el = doc |> document.create_element("p")
  el |> node.set_text_content("Hello, world!")
  body |> node.append_child(el)
}

Development

Build

task build # or `task build --watch` to watch for changes and rebuild

Test

task test

Generate docs

task docs

Clean

task clean
Search Document