API reference / @docmentis/udoc-node / Binding
Type Alias: Binding
ts
type Binding =
| {
variable: BindingVariable;
}
| {
repeat: BindingRepeat;
}
| {
condition: BindingCondition;
}
| {
choice: BindingChoice;
}
| {
option: BindingOption;
}
| {
otherwise: BindingOtherwise;
};What a binding says, of any kind, written in its tag's syntax wherever it is set: a rule tying template content to the data.
Every kind a template's tags write. Where each can stand is the model's, not the binding's: a variable only within a paragraph, an option or an otherwise only in its choice, a shape a condition alone (ShapeBinding). The model holds each kind's own struct; a Binding is what crosses to a host and back, whatever its kind: what a host asks a binding place be made with, and what a report or a geometry says of one. See the Automation Binding design doc's "Where the pieces live".