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

Plugin system. #4

Open
NJichev opened this issue Feb 28, 2018 · 0 comments
Open

Plugin system. #4

NJichev opened this issue Feb 28, 2018 · 0 comments

Comments

@NJichev
Copy link
Collaborator

NJichev commented Feb 28, 2018

I think we could do well with a little plugin system, you pass in some config options and some modules are ran(with some implemented behaviour).

Example:
I have a PITCHME.md, which github renders as a presentation using impress.js. I want to render those in a special way, so that I can display them on my own site. Let's say we put all the PITCHME.md files under presentations/. To display them correctly, we'll have to take all presentations, split them on the #HSLIDE, render each split to html and then join the different splits using sections. After that we pass in that to the view and using impress.js - it will check the sections and create our presentation.

To accomplish that, I would need to hook into the parsing process of the structure, get the presentations(configurable) folder and change the way the are rendered.

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

No branches or pull requests

1 participant