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 support for plugins: Phase III #44

Open
11 tasks
oubiwann opened this issue Feb 4, 2018 · 0 comments
Open
11 tasks

Add support for plugins: Phase III #44

oubiwann opened this issue Feb 4, 2018 · 0 comments
Labels
Milestone

Comments

@oubiwann
Copy link
Member

oubiwann commented Feb 4, 2018

I'd like to write a dragon plugin that adds Flickr images to blog posts (of a given size, arrangement, and link back to Flickr). There's a ticket for this here:

In order to do this, though, I need to inject a task into the normal content-parsing workflow, before markdown is converted to HTML.

In order to that, I need Dragon to be event-driven (see #1). With that in place, adding plugin support should be pretty straight-forward.

Phase I Tasks (Milestone 0.5.0):

Phase II Tasks:

Phase III Tasks:

  • Identify other areas of Dragon that can be converted to using this new infrastructure
  • Document how plugins need to be configured in order to
    • define a specific function that gives all its subscribers
    • define and publish pre- and post- events for every function that will operate on dragon data (so that other plugins may determine if they need to go before or after another plugin
    • listen for the right events
    • take actions at the right times
    • publish their own events
    • suggest plugin code layout:
      • name.plugin.main?
      • name.plugin.events?
      • name.plugin.subscribers?
@oubiwann oubiwann added the epic label Feb 4, 2018
@oubiwann oubiwann added this to the 0.7.0 milestone Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant