Skip to main content

Module extensions

Module extensions 

Source
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 snapshot does 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 scope prepared anew after files changed: each whose input holds one of them, or lies in one, prepares again. A failed preparation counts as a change.
configure
Binds the extensions configs to the document at doc, each package loaded from its bundle under base, and prepares each; no configs unbinds it. A configuration already bound in scope is 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 file in folder — 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 loader as the one every package is loaded with; a second call is ignored.
route
The reply to path when it is an extension’s address in scope: a browser file the package ships, or else what the package routes it to. None when it is no extension’s.