Skip to content

This site describes solve-engine 2.44.0, the version npm installs.

VARIABLES_PACKAGE

const VARIABLES_PACKAGE: IEnginePackage;

Defined in: packages/engine/src/packages/variables/VariablesPackage.ts:16

Variable read and write WITHIN one document: :name = expr to define, name to read it back.

Document-spanning variables are a separate package, solve-global-variables, because they are a different level of functionality: everything here stays inside the document being evaluated, where global :name reaches outside it. Keeping them apart is what lets a host refuse one without losing the other. See that package for the reasoning.