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

TOML strings manipulation

Link to this section 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

Link to this section Types

Link to this section Functions

Link to this function

extract_frontmatter_and_content(wholefile)

View Source

Specs

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

Extracts Frontmatter and Content from a Post

Specs

toml_map_to_string(map()) :: toml()

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

Link to this function

update_toml(front_matter, arg)

View Source

Specs

update_toml(toml(), map()) :: toml()

Updates a TOML formatted front-matter