From a2e71ae121dea2d6a6e01377e730092483a9241e Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 3 Apr 2022 20:43:50 +0200 Subject: [PATCH] Added template plugin --- plugin_template.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 plugin_template.py diff --git a/plugin_template.py b/plugin_template.py new file mode 100644 index 0000000..ebd4bee --- /dev/null +++ b/plugin_template.py @@ -0,0 +1,22 @@ +class Plugin: + # The name of the plugin. This string will be displayed in the Plugin menu + name = "Template Plugin" + # The name of the plugin author + author = "Template Author" + + # The HTML that will be loaded when selecting the plugin in the list + main_view_html = "

Hello World

" + # The HTML that will be used to display a widget in the plugin main page + tile_view_html = "" + + # A private method. Any method that gets prefixed by a double underscore (__) will not be callable from JavaScript + async def __private_method(*args): + pass + + # A normal method. It can be called from JavaScript using call_plugin_function("method_1", argument1, argument2) + async def method_1(*args): + pass + + # A normal method. It can be called from JavaScript using call_plugin_function("method_2", argument1, argument2) + async def method_2(*args): + pass