The file extension that view source files are expected to have.
The name of the RequireJS loader plugin used by the viewLocator to obtain the view source. (Use requirejs to map the plugin's full path).
Parameters passed to the RequireJS loader plugin used by the viewLocator to obtain the view source.
Converts a view id into a full RequireJS path.
The view id to convert.
string
The require path.
Converts a view url into a view id.
The url to convert.
string
The view id.
Called when a view cannot be found to provide the opportunity to locate or generate a fallback view. Mainly used to ease development.
The view id whose view should be created.
The require path that was attempted.
A promise for the fallback view.
Creates the view associated with the view id.
The view id whose view should be created.
A promise of the view.
Converts an array of elements into a single element. White space and comments are removed. If a single element does not remain, then the elements are wrapped.
The elements.
HTMLElement
A single element.
Determines if the url is a url for a view, according to the view engine.
The potential view url.
boolean
True if the url is a view url, false otherwise.
Parses the view engine recognized markup and returns DOM elements.
The markup to parse.
Array<Node>
The elements.
Calls parseMarkup
and then pipes the results through ensureSingleElement
.
The markup to process.
HTMLElement
The view.
Puts the view associated with the id into the cache of parsed views.
The view id whose view should be cached.
The view to cache.
any
Gets the view associated with the id from the cache of parsed views.
The view id to lookup in the cache.
HTMLElement
The cached view or null if it's not in the cache.