transmute v0.1.0 Transmute.Node

Documentation for Transmute.Node.

Link to this section Summary

Link to this section Functions

Link to this macro

comment(x) (macro)

Link to this macro

defalias(name, arg2) (macro)

Link to this macro

define_node(name, type, defaults) (macro)

Link to this macro

defnode(name) (macro)

Link to this macro

defnode(name, defaults) (macro)

Link to this macro

exact(x) (macro)

Link to this macro

group(x) (macro)

Link to this macro

is_keyword(x) (macro)

Link to this macro

is_node(x) (macro)

Link to this macro

json(x) (macro)

Link to this macro

nodes(list) (macro)

Sugar for lists:

iex> nodes do
...>   "Hi"
...>   "there"
...> end
["Hi", "there"]
Link to this macro

safe(x) (macro)

Link to this function

set_children(arg, children)

Sets the children of a node.

iex> set_children({:foo, %{}, "a"}, "b")
{:foo, %{}, "b"}

iex> set_children({:foo, %{}, "a"}) do
...>   "b"
...> end
{:foo, %{}, "b"}

Converts a passed list or map into a props quoted props map.