The TiddlyWeb store system provides a concept of
HOOKS. These allow configurable actions that are performed after an entity (recipe, bag or tiddler) is
deleted from the store. This is primarily useful with
put to do logging, update an auxiliary information store, or do some kind of secondary action like execute a web hook, send an email notification.
Using them in your own instance requires the addition or creation of a plugin which manipulates the
tiddlyweb.store.HOOKS dictionary. Learning how to use hooks is probably best done by inspecting existing examples. Please note that this is one of the more advanced aspects of extending TiddlyWeb and while simples behaviors are quite trivial, doing anything interesting requires a good understanding of the entire environment.
- The core tests
- These show an example of how a recipe
HOOKis constructed by simply appended some text to a global after a store action.
- Sets up a
_tiddler_change_handlerwhich will update a Whoosh index whenever a tiddler is
- Establishes a hook to update a data with outgoing links from the current tiddler.
- Lays in the infrastructure for asynchronous handling of
HOOKS. Every time a tiddler is
deletea message identifying that tiddler is sent down a