Meeseeks.TupleTree (Meeseeks v0.17.0) View Source

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

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

To parse a tuple tree use Meeseeks.parse(tuple_tree, :tuple_tree)

Link to this section Summary

Link to this section Types

Specs

child_node_t() :: comment() | element() | processing_instruction() | text()

Specs

comment() :: {:comment, String.t()}

Specs

doctype() :: {:doctype, String.t(), String.t(), String.t()}

Specs

element() :: {String.t(), [{String.t(), String.t()}], [child_node_t()]}
Link to this type

processing_instruction()

View Source

Specs

processing_instruction() ::
  {:pi, String.t()}
  | {:pi, String.t(), [{String.t(), String.t()}]}
  | {:pi, String.t(), String.t()}

Specs

root_node_t() :: comment() | doctype() | element() | processing_instruction()

Specs

t() :: root_node_t() | [root_node_t()]

Specs

text() :: String.t()