rumkin / pill

Add dynamic content loading to static sites with only 1 KiB of JS
https://rumkin.github.io/pill/
MIT License
383 stars 18 forks source link

Plugins support #17

Open rumkin opened 5 years ago

rumkin commented 5 years ago

Make plugins support with Options builder class. Which has instance method Options#toObject() which returns Pill constructor's options argument.

type OptionsObj = {
  // Pill's constructor options props
}

class Options {
  toObject(): OptionsObj;
}

It allows implement custom Pill configurations, including extensible with plugins.

Related questions: