Support TOML as a frontmatter language

Use case or problem

YAML is supported as frontmatter and one of the reasons is for static site generators. Zola, the static site generator, does supports yaml for frontmatter but it actuallly considers TOML the default frontmatter language.

As most developers know not all YAML parsers are created equal in the various tool sets and languages out there. Performing any kind of automatic text parsing to read the YAML could have different outputs depending on the language and toolset used.

My opinion is that TOML’s layout and structure, make it a more natural fit for describing a document and it’s metadata. It also can be easier to write as it doesn’t require as much attention to indentations than YAML.

Proposed solution

Add additional frontmatter language support for TOML.

1 Like