Feel free to release this as your own, because I certainly won't. I tried to put comments on everything that might be unclear, because I also had these struggles when I first started with addon development. There are only a few cases for beginners to look at and they are often not that clear and concise.
In
Iriel’s Field Guide to Secure Handlers the documentation on restricted environments and how it all works is pretty comprehensive, but under "Examples", all that's said is this:
There are now a number of AddOns in the wild which use the new SecureHandlers
mechanisms.
|
For someone who has no experience in coding these things, it can definitely be daunting to just open, for example, LibActionButton and figure out the details of how it all works.