instance method Spah.DOM.Document#run
Spah.DOM.Document#run(state, done) → void
-
state
(Spah.SpahQL
) – The root-level state object with path ”/” -
done
(Function
) – (Server-side only) A callback function to be executed when the run has completed. The callback will receive the document as an argument.
Runs all conditional logic in the document and modifies the document accordingly. Runs synchronously in the browser and asynchronously in the Node.js environment.