Kuddle.Node (Kuddle v1.1.1)

Copy Markdown View Source

The equivalent of a KDL Node, every node has a name, some optional annotations, attributes and children.

Annotations are plain strings.

Attributes contain both properties and values in the order that they appeared.

Children is a list of sub Nodes.

Summary

Types

An attribute is either a property {key, value}, or just a plain value.

t()

Types

attribute()

@type attribute() ::
  {key :: Kuddle.Value.t(), value :: Kuddle.Value.t()} | Kuddle.Value.t()

An attribute is either a property {key, value}, or just a plain value.

t()

@type t() :: %Kuddle.Node{
  annotations: [String.t()],
  attributes: [attribute()],
  children: [t()] | nil,
  name: String.t()
}