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

Functions

Link to this function

extract_frontmatter_and_content(wholefile)

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

Extracts Frontmatter and Content from a Post

Link to this function

front_matter_to_map(toml)

View Source
@spec front_matter_to_map(toml()) :: map()
@spec 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
@spec update_toml(toml(), map()) :: toml()

Updates a TOML formatted front-matter