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

New file loading system. #9

Closed
Aglezabad opened this issue Apr 14, 2017 · 1 comment
Closed

New file loading system. #9

Aglezabad opened this issue Apr 14, 2017 · 1 comment

Comments

@Aglezabad
Copy link
Member

This is the current system:

  • The plugin loads an array of file routes, all of them are set in docpad.coffee.
  • All api entries are called from a unique base url.

Proposed new system:

  • We will load multiple JSON files from docpad.coffee.
  • The JSON file contains a list of file routes and a base url. So we can load different apis without mixing them.
  • Also, each JSON file will set specific configuration for each api.

The benefits of the new system are:

  • Loading different apis using different base urls.
  • We can use two versions of the same api without refactoring old version.
  • We can isolate each api, reducing debugging complexity.
@Aglezabad Aglezabad added this to the 2.2 milestone Apr 14, 2017
@Aglezabad Aglezabad self-assigned this Apr 14, 2017
@Aglezabad Aglezabad added this to TODO in Milestone v2.2 Apr 14, 2017
Aglezabad added a commit that referenced this issue Apr 15, 2017
@Aglezabad Aglezabad moved this from TODO to Testing and making documentation in Milestone v2.2 Apr 15, 2017
@Aglezabad Aglezabad moved this from Testing to Done in Milestone v2.2 Apr 18, 2017
@Aglezabad
Copy link
Member Author

Code added and tested. Plugin version 2.2.1 tag beta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

1 participant