Endowl plugin to generate a letter of instruction regard crypto assets.
Install liquid: yarn global liquidjs
npx liquidjs sample-data.json < template.liquid
TODO It turns out that generating md with liquid is problematic. Liquid adds a bunch of whitespace that makes formatting the markdown properly an issue.
Things to try:
- Turn off
greedyin liquid config - Use HTML or another markup language that isn't as sensitive to whitespace.
- Try 11ty. It seems that it understands markdown and has a utility to cleanup rendered markdown after after liquid mangles it (at the expense of
codeblocks not working).
sample-data.json is an example of the data structure that has been preprocessed for use by a template. The pre-processor hasn't been written, yet, but this is what it's output will look like.
unprocessed-data.json is more representative of how the data will be stored.
The preprocessor:
- Copies the document metadata for the document from the
documentsarray tothis. - Translates
contactsanddevicesto dictionaries so that they can be easily referenced by id in other data fields (i.e.cryptoassets.trusted_helpersandcryptoassets.wallets.x.device_id).