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

Allow for templates to be "hydrated" from a given json blob #363

Open
Lego6245 opened this issue Apr 15, 2019 · 0 comments
Open

Allow for templates to be "hydrated" from a given json blob #363

Lego6245 opened this issue Apr 15, 2019 · 0 comments
Labels
discussion Open discussion on a subjet

Comments

@Lego6245
Copy link

EI has the option to output a json blob and an HTML output. The HTML output uses a slightly different version of the data dumped in the json blob, the two are not compatable with each other. This means that if a developer wants structured data and the HTML output, they have three options.

  1. Generate just the HTML output, and then "pull out" the json used by the HTML output.
  2. Generate just the JSON and build their own HTML output.
  3. Generate both and store both, effectively doubling the amount of storage needed for a single log.

I propose the ability to take a given JSON blob and parse it into an HTML template. Ideally, this is possible without having to run EI again. Instead, a single template file could be loaded, and then via some other mechanism, the JSON needed to populate it is requested and loaded in place. This template file will likely be versioned as the underlying JSON contract may change from version to version. A developer would then maintain the JSON blobs and the template versions, and when a log file is requested, provide both the template matching the version of JSON, and the JSON blob itself.

This will allow for users of EI to store the rich, machine readable information, and still provide the familiar HTML interface to consumers, meaning that tasks like meta-analysis become much easier, without having to take the requirement of storing a bunch of duplicated data.

@EliphasNUIT EliphasNUIT added the discussion Open discussion on a subjet label Apr 16, 2019
@EliphasNUIT EliphasNUIT added this to Backlog in General tasks Aug 11, 2019
@EliphasNUIT EliphasNUIT added this to Backlog in GW2EIBuilders Dec 23, 2020
@EliphasNUIT EliphasNUIT removed this from Backlog in General tasks Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Open discussion on a subjet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants