Meeseeks v0.3.1 Meeseeks.TupleTree

HTML documents in Elixir/Erlang have traditionally been represented by a tuple-tree like:

{"html", [], [
  {"head", [], []}
  {"body", [], [
    {"h1", [{"id", "greeting"}], ["Hello, World!"]}]}]}

:mochiweb_html parsed HTML into this format, and the tools for selecting HTML used this format, so html5ever (the Elixir NIF) choose to output to this format as well.

Meeseeks accepts tuple-trees as input, creating Meeseeks.Documents from them.

Summary

Types

comment()
comment() :: {:comment, String.t}
doctype()
doctype() :: {:doctype, String.t, String.t, String.t}
element()
element() :: {String.t, [{String.t, String.t}], [node_t]}
node_t()
node_t() :: comment | doctype | element | text
t()
t() :: node | [node_t]
text()
text() :: String.t