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

[Feature]: Add a method to read static data from Add-Ons #3164

Closed
cwisniew opened this issue Nov 11, 2021 · 1 comment
Closed

[Feature]: Add a method to read static data from Add-Ons #3164

cwisniew opened this issue Nov 11, 2021 · 1 comment
Assignees
Labels
documentation needed Missing, out-of-date or bad documentation feature Adding functionality that adds value tested This issue has been QA tested by someone other than the developer.

Comments

@cwisniew
Copy link
Member

Feature Request

Add-Ons can contain files which are useful for storing static data (json file(s) with look up tables or SRD information for example). There needs to be a way to get this file.

The Solution you'd like

A new Macro Function "data.getStaticData(namespace, path)" which returns the information contained in the file that is at the specified path.

If the macro function is run from the add-on it should be able to access any file, if it is not run from the token then it should only be able to access files in the public/ directory and only if the URI access flag is set.

Alternatives that you've considered.

Not doing it and drowning under a sea of feature requests.

Additional Context

No response

@cwisniew cwisniew added the feature Adding functionality that adds value label Nov 11, 2021
@cwisniew cwisniew self-assigned this Nov 11, 2021
@Phergus Phergus added documentation needed Missing, out-of-date or bad documentation tested This issue has been QA tested by someone other than the developer. labels Nov 11, 2021
@Phergus
Copy link
Contributor

Phergus commented Nov 11, 2021

Tested. Working as described.

@Phergus Phergus closed this as completed Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation needed Missing, out-of-date or bad documentation feature Adding functionality that adds value tested This issue has been QA tested by someone other than the developer.
Projects
None yet
Development

No branches or pull requests

2 participants