Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to pack objects rather than just files #54

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xyzzy42
Copy link

@xyzzy42 xyzzy42 commented Sep 8, 2024

This allows compilePack() src argument to not just be a directory with files to pack, but an Iterable of objects to pack.

Then it can be used to create packs that are dynamically created.

PF2e Workbench can use this for a compendium of macros it creates, where the macros don't exist as directory of json files. The macro Items are created dynamically. Currently, it uses an old NeDB format compendium for these and makes the database "manually" by concatenating lines of json text.

This allows compilePack() src argument to not just be a directory
with files to pack, but an Iterable that returns the objects to pack.

Then it can be used to create packs that are dynamically created.

PF2e Workbench can use this for a compendium of macros it creates, where the
macros don't exist as directory of json files.  The macro Items are created
dynamically.  Currently, it uses an old NeDB format compendium for these and
makes the database "manually" by concatenating lines of json text.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant