Add decorators plugin functions and hooks #11

Closed
opened 6 years ago by novirium · 1 comments
Owner

The current method of registering plugin functions and hooks is explicit, but bulky. Would be good to also offer another option to just decorate plugin methods as @plugin_function and allow hooks to be decorated with @plugin_hook. Hooks would just be blank class methods, with the decorator overriding it with the hook callable.

The current method of registering plugin functions and hooks is explicit, but bulky. Would be good to also offer another option to just decorate plugin methods as `@plugin_function` and allow hooks to be decorated with `@plugin_hook`. Hooks would just be blank class methods, with the decorator overriding it with the hook callable.
novirium added the [type] Enhancement [status] Available labels 6 years ago
novirium added this to the v0.3 milestone 6 years ago
Poster
Owner

Done

Done
novirium closed this issue 5 years ago
novirium added [status] Done and removed [status] Available labels 5 years ago
Sign in to join this conversation.
Loading…
There is no content yet.