File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Plugins
2
2
3
+
3
4
PyScript, like many other software plaforms, offers a Plugin API that can be used to extend its
4
5
own functionality without the need to modify its own core. By using this API, users can add new
5
6
features and distribute them as plugins.
@@ -50,4 +51,23 @@ hooks.worker.codeAfterRun.add('print("worker", "codeAfterRun")');
50
51
hooks .worker .onAfterRun .add (() => {
51
52
console .log (" worker" , " onAfterRun" );
52
53
});
53
- ```
54
+ ```
55
+
56
+ That's it.
57
+
58
+
59
+ ## Plugins API
60
+
61
+ As mentioned above, PyScript Plugins API exposes a set of hooks that can be used to intercept
62
+ specific events in the lifecycle of a PyScript application and add or modify specific features
63
+ of the platform itself. To better understand how it works it's important to understand the concepts
64
+ behind Plugins.
65
+
66
+ ### Concepts
67
+
68
+ ** TODO: ADD LIST OF CONCEPTS**
69
+
70
+
71
+
72
+
73
+ Here's a list of the available hooks:
You can’t perform that action at this time.
0 commit comments