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
Specs
element() :: {String.t(), [{String.t(), String.t()}], [child_node_t()]}
Specs
Specs
root_node_t() :: comment() | doctype() | element() | processing_instruction()
Specs
t() :: root_node_t() | [root_node_t()]
Specs
text() :: String.t()