gilbert.plugins.yaml module

Provides a general YAML file loader.

gilbert.plugins.yaml.load_yaml(path: Path) tuple[None | ByteString | str, dict]

Loads a YAML file.

Reads the first “document” (up to the ‘—’ line) as meta, and treats the remainder of the file as content.