Kuddle.V1.Encoder (Kuddle v1.1.0) View Source

Encodes a Kuddle document into a KDL blob

Link to this section Summary

Functions

Encodes a kuddle document as a KDL string

Same as encode/1,2, but will raise a Kuddle.EncodeError on error from decode.

Link to this section Types

Link to this section Functions

Specs

encode(document()) :: {:ok, String.t()} | {:error, term()}

Encodes a kuddle document as a KDL string

Link to this function

encode!(document, options \\ [])

View Source

Specs

encode!(document(), Keyword.t()) :: String.t()

Same as encode/1,2, but will raise a Kuddle.EncodeError on error from decode.

The options argument is discarded as options is a V2 feature.