Expand description
Extension contracts and captured state; the executable installs the native loader.
Structs§
- Binding
- An extension bound to a document: its package, the input it reads and what
it last prepared from it. Clones share one state; a
snapshotdoes not. - Config
- An extension as a document’s
extensions:names it: its package and what it is configured with.
Traits§
- Loader
- What loads an extension’s package from its bundle; the executable installs the native one.
- Package
- An extension’s package, loaded: what devpage asks, in JSON, to read its input and show its files.
Functions§
- changed
- Whether an extension in
scopeprepared anew afterfileschanged: each whose input holds one of them, or lies in one, prepares again. A failed preparation counts as a change. - configure
- Binds the extensions
configsto the document atdoc, each package loaded from its bundle underbase, and prepares each; noconfigsunbinds it. A configuration already bound inscopeis kept as it is. - for_
document - The extensions bound to the document at
doc— none when it has none. - for_
file - The extensions of the document that owns
fileinfolder— the entry document’s when none does. - input_
roots - The input of every extension bound in
scope, for the watcher to watch. - install_
loader - Installs
loaderas the one every package is loaded with; a second call is ignored. - route
- The reply to
pathwhen it is an extension’s address inscope: a browser file the package ships, or else what the package routes it to.Nonewhen it is no extension’s.