module

Plombir::Frontmatter

Class methods

parse(source : String, file : String = "<input>") : Document

Parses source (usually the contents of file).

doc = Plombir::Frontmatter.parse("---\ntitle: Hi\n---\n\nBody\n")
doc.data["title"] # => "Hi"
doc.body          # => "Body\n"
Source

Nested types