Functions

There are only two things you call from a script: start, which starts, and plugin, which adds.

HyperScope.start

Mounts every scope in the document and follows any inserted later. The only options are { delimiters, plugins }.

HyperScope.plugin

This is the one way to add anything to the runtime. The tools it receives are in Writing a plugin. Called before start, it is queued and runs at start. Called after start, it runs right away. The detail of the hyper-scope:init event is the same object.

In a module

With the module approach, you import the same names. HyperScope.start of the plain script tag approach is start.

To reach the h-model of an element outside an expression, import modelOf(element). It is the same as $model in an expression.

→ Writing a plugin