class Spah.DOM
Classes
-
Spah.DOM.Blueprint
A “blueprint” is a server-side representation of your application’s layout. Blueprints are used during Spah’s cold-rendering cycle, when a user is requesting a page via a regular non-ajax HTTP request. A Blueprint contains all the markup for your app, annotated with SpahQL assertions. Whenever the blueprint is served to a user, the document logic is run, the document set into precisely the state needed to display the relevant UI state to the user and the resulting HTML shipped down the wire to the browser, from whence the Spah client will take over for all future requests.
-
Spah.DOM.Document
Wraps behaviour for any HTML document - either the current loaded document on the client-side, or a Blueprint document on the server side. Provides behaviour for running document modifiers when the SpahQL assertion associated with an element flips between true and false. Also stores the results of each assertion on each run-through so that modifiers may be triggered or left alone, as appropriate.
-
Spah.DOM.Errors
A containing namespace for all exceptions generated within the Spah.DOM library.
-
Spah.DOM.Modifiers
A collection of built-in modifier scripts to be applied during state deltas.