Module / v1.0.0-beta.13

@typed/template/Template

31 unique exports available through this public import path, including their members and aliases.

import * as Template from "@typed/template/Template";

Attribute bindings

  • AttrPartNode

    class

    Represents a dynamic attribute (e.g. src="${url}").

Attribute syntax

  • Attribute

    type-alias

    Represents every static or dynamic attribute-like AST node.

  • AttributeNode

    class

    Represents a static attribute (e.g. class="foo").

Boolean attributes

  • BooleanNode

    class

    Represents a boolean attribute (e.g. disabled).

  • BooleanPartNode

    class

    Represents a dynamic boolean attribute (e.g. ?disabled="${isDisabled}").

Class contributions

Comment bindings

Comment content

  • Comment

    type-alias

    Represents static, dynamic, or sparse comment content.

  • CommentNode

    class

    Represents a static comment.

Dataset contributions

  • DataPartNode

    class

    Represents a data attribute part (e.g. data-foo="${value}").

Document structure

  • DocType

    class

    Represents a parsed DOCTYPE declaration.

Dynamic child positions

  • NodePart

    class

    Represents a dynamic insertion point within the node structure (e.g. <div>${content}</div>).

Dynamic positions

  • PartNode

    type-alias

    Represents a single dynamic interpolation part in the template AST.

Element references

  • RefPartNode

    class

    Represents a reference capture (e.g. ref="${ref}").

Element structure

  • ElementNode

    class

    Represents an HTML, SVG, MathML, or foreign-content element with children.

  • ParentNode

    type-alias

    Represents an AST node that can structurally contain template children.

  • SelfClosingElementNode

    class

    Represents a self-closing HTML element (e.g. <br />, <img />).

Native event bindings

  • EventPartNode

    class

    Represents an event listener part (e.g. @click="${handler}").

Property bindings

Sparse attributes

  • SparseAttrNode

    class

    Represents a sparse attribute (e.g. class="foo ${bar}").

Sparse comments

Sparse expressions

  • SparsePartNode

    type-alias

    Represents a “sparse” part, which is a text or attribute value composed of mix of static text and dynamic parts (e.g. id="prefix-${id}").

Sparse text

  • SparseTextNode

    class

    Represents sparse text content (e.g. Hello ${name}!).

Spread bindings

Template structure

  • Node

    type-alias

    Represents any root or child node in the renderer-neutral template AST.

  • Template

    class

    Represents a parsed HTML template.

    A Template instance contains the static structure of an HTML template (nodes) and metadata about dynamic parts (interpolation points).

Text bindings

  • TextPartNode

    class

    Represents a dynamic text part (e.g. ${text}).

Text content

  • Text

    type-alias

    Represents static, dynamic, or sparse text content.

  • TextNode

    class

    Represents a static text node.

Text contexts

  • TextOnlyElement

    class

    Represents an element that contains only text (e.g. <script>, <style>).