jelhouss / thio

Turn your HTML template into a readable tree of metadata elements :herb:
MIT License
20 stars 3 forks source link

Offer and document a plugin API #8

Open drschwabe opened 4 years ago

drschwabe commented 4 years ago

I'd take a stab at making an EJS plugin (ie- so it can detect and separate blocks of EJS) if you would make it possible to plugin 'middleware' style functionality. Maybe a 'unified' style pipeline is the way to go https://github.com/unifiedjs/unified

jelhouss commented 4 years ago

Hi Derrick, thanks for the proposal, which I REALLY think it would be so much beneficial! I will work on this, and also on the previous issues that I opened about enhancing/supporting other stuff (and which I think are much important currently). Unfortunately I won't have much time in the upcoming months; But I will do my best to close these ASAP, and I also commented your issue to let you know that I know about it.

drschwabe commented 4 years ago

hey no worries, it's not an issue or request as much as just tossing up idea. I'll close this and perhaps we can re-open or discuss again in the future for if either of us make some progress in this regard. Also Express's app.use() pattern which I think is quite similar to unified is nice API for this kind of thing https://expressjs.com/en/guide/using-middleware.html

jelhouss commented 4 years ago

Hi Derrick, I will reopen this one, having it open is better in any way.