facet
Types
The Entire Document split between frontmatter and content.
pub type Document {
Document(frontmatter: Option(Frontmatter), content: String)
}
Constructors
-
Document(frontmatter: Option(Frontmatter), content: String)
pub type Error {
Empty
ParseError(msg: String)
}
Constructors
-
Empty
-
ParseError(msg: String)
The format of the frontmatter.
pub type Format {
TOML
JSON
YAML
}
Constructors
-
TOML
-
JSON
-
YAML
The frontmatter content and format.
pub type Frontmatter {
Frontmatter(content: String, format: Format)
}
Constructors
-
Frontmatter(content: String, format: Format)