View Source LastCrusader.Utils.Toml (Last Crusader v0.11.0)

TOML strings manipulation

Summary

Functions

Extracts Frontmatter and Content from a Post

Transforms a Map representation of TOML into its String counterpart with included separators

Updates a TOML formatted front-matter

Types

toml()

@type toml() :: String.t()

Functions

extract_frontmatter_and_content(wholefile)

@spec extract_frontmatter_and_content(toml()) :: {toml(), String.t()}

Extracts Frontmatter and Content from a Post

front_matter_to_map(toml)

@spec front_matter_to_map(toml()) :: map()

toml_map_to_string(m)

@spec toml_map_to_string(map()) :: toml()

Transforms a Map representation of TOML into its String counterpart with included separators

update_toml(front_matter, arg)

@spec update_toml(toml(), map()) :: toml()

Updates a TOML formatted front-matter