Sharing data between plugins
Limedocs expose a unique (single instance) datastore shared between all virtual viles. The datastore is a simple read-write key-value object.
Each virtual file object exposes a
.datastore object property that you can read.
Populating the datastore is usually done by Transformation plugins. The following plugins support populating datastore from data found in files, automatically:
transformer-jsonpopulates the datastore from JSON keys
transformer-yamlpopulates from YAML properties
transformer-markdownpopulates from front-matter keys