Module ferru::document [] [src]

Provides a representation of a Ferru document.

A Ferru document consists of an optional header and a body, with the two separated with the separator ---\n.

Structs

Document

A struct representation of a Ferru document, consisting of a YAML header and a String body.

Functions

load_documents_from_disk

Recursively traverses the specified directory and loads the all files matching the specified criteria as document files.

Type Definitions

Header

A convenient alias type for the data contained in the header of a Ferru document.