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

Support arguments in load_plugin() #95

Open
iynehz opened this issue May 5, 2019 · 0 comments
Open

Support arguments in load_plugin() #95

iynehz opened this issue May 5, 2019 · 0 comments

Comments

@iynehz
Copy link
Contributor

iynehz commented May 5, 2019

See

my ($class, $plugin_name) = @_;

Now this load_plugin method does not support arguments. It would be best to support arguments like my ($class, $plugin_name, @args) = @_, and register plugins by $plugin_package->register( $class, @args );, so plugin developer can have arguments to fine control behavior of their plugins.

One use case is pablrod/p5-Devel-IPerl-Plugin-Chart-Plotly#7

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

No branches or pull requests

1 participant