Skip to content

Commit 6cce635

Browse files
committed
add plugins API intro and placeholder for concepts
1 parent ec1e765 commit 6cce635

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

docs/user-guide/plugins.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Plugins
22

3+
34
PyScript, like many other software plaforms, offers a Plugin API that can be used to extend its
45
own functionality without the need to modify its own core. By using this API, users can add new
56
features and distribute them as plugins.
@@ -50,4 +51,23 @@ hooks.worker.codeAfterRun.add('print("worker", "codeAfterRun")');
5051
hooks.worker.onAfterRun.add(() => {
5152
console.log("worker", "onAfterRun");
5253
});
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:

0 commit comments

Comments
 (0)