A sentinel value that signals that a value was handled by a directive and should not be written to the DOM.
The default TemplateFactory which caches Templates keyed on result.type and result.strings.
Returns a value ready to be inserted into a Part from a user-provided value.
If the user value is a directive, this invokes the directive with the given part. If the value is null, it's converted to undefined to work better with certain DOM APIs, like textContent.
Interprets a template literal as an HTML template that can efficiently render to and update a container.
Removes nodes, starting from startNode (inclusive) to endNode
(exclusive), from container.
Renders a template to a container.
To update a container with new values, reevaluate the template literal and
call render with the new result.
a TemplateResult created by evaluating a template tag like
html or svg.
A DOM parent to render to. The entire contents are either replaced, or efficiently updated if the same result type was previous rendered there.
a function to create a Template or retreive one from cache.
Reparents nodes, starting from startNode (inclusive) to endNode
(exclusive), into another container (could be the same container), before
beforeNode. If beforeNode is null, it appends the nodes to the
container.
Interprets a template literal as an SVG template that can efficiently render to and update a container.
Generated using TypeDoc
A function type that creates a Template from a TemplateResult.
This is a hook into the template-creation process for rendering that requires some modification of templates before their used, like ShadyCSS, which must add classes to elements and remove styles.
Templates should be cached as aggressively as possible, so that many TemplateResults produced from the same expression only do the work of creating the Template the first time.
Templates are usually cached by TemplateResult.strings and TemplateResult.type, but may be cached by other keys if this function modifies the template.
Note that currently TemplateFactories must not add, remove, or reorder expressions, because there is no way to describe such a modification to render() so that values are interpolated to the correct place in the template instances.