Optionalcontext: TemplateContextA reference to the wrapped HTMLTemplateElement
Create an element with the template contents rendered as its children
The HTML tag name of the root element to create
Optionalattrs: AttributeRecord | AttributesOptional attriubutes to apply to the root element
Optionalcontext: TemplateContextOptional context object for template value lookups
Render this template into a target host element.
Optionalcontext: TemplateContextStaticfromStatichtmlStaticrenderRender a Template or HTMLTemplateElement using the template rendering engine.
A template to render
The root HTMLElement to render the template into
Optionalcontext: TemplateContextOptional context object for template value lookups
Staticunwrap
Helper class for managing HTML templates.
Wraps an HTMLTemplateElement to provide rendering and element factory utilities.