Static
PARTSConfigure a registry of template parts which are supported for this application for partial rendering.
A record of all rendered template parts.
Protected
_renderHTMLProtected
Render each configured application part using Handlebars templates.
Context data for the render operation
Options which configure application rendering behavior
A single rendered HTMLElement for each requested part
Protected
_prepareProtected
Prepare context that is specific to only a single rendered part.
It is recommended to augment or mutate the shared context so that downstream methods like _onRender have visibility into the data that was used for rendering. It is acceptable to return a different context object rather than mutating the shared context at the expense of this transparency.
The part being rendered
Shared context provided by _prepareContext
Options which configure application rendering behavior
Context data for a specific part
Protected
_replaceHTMLProtected
Replace the HTML of the application with the result provided by Handlebars rendering.
The result from Handlebars template rendering
The content element into which the rendered result must be inserted
Options which configure application rendering behavior
Protected
_preProtected
Prepare data used to synchronize the state of a template part.
The id of the part being rendered
The new rendered HTML element for the part
The prior rendered HTML element for the part
A state object which is used to synchronize after replacement
Protected
_syncProtected
Synchronize the state of a template part after it has been rendered and replaced in the DOM.
The id of the part being rendered
The new rendered HTML element for the part
The prior rendered HTML element for the part
A state object which is used to synchronize after replacement
Protected
_attachProtected
Attach event listeners to rendered template parts.
The id of the part being rendered
The rendered HTML element for the part
Rendering options passed to the render method
Private
#parseParse the returned HTML string from template rendering into a uniquely identified HTMLElement for insertion.
The id of the part being rendered
Configuration of the part being parsed
The string rendered for the part
The parsed HTMLElement for the part
The mixed application class augmented with Handlebars template rendering behavior.