Constructor
new CompiledTemplate(program)
Parameters:
| Name | Type | Description |
|---|---|---|
program |
object | A render program. |
Members
elementPaths :Array:.<Array:.<number:>>
Index paths to each bound element, by marker id.
Type:
failed :boolean
Set when the skeleton could not be prepared, so callers fall back rather than retrying a parse that will fail the same way.
Type:
- boolean
program :object
Type:
- object
prototype :DocumentFragment|null
The prototype tree every instance is cloned from.
Type:
- DocumentFragment | null
textPaths :Array:.<Array:.<number:>>
Index paths to each dynamic text node, by marker id.
Type:
Methods
instantiate() → {Object|null}
Clones the prototype and resolves every binding target in the clone.
Returns:
The instance's nodes, or null when the template could not be prepared.
- Type
- Object | null