banira
    Preparing search index...

    Interface Prerenderer

    A reusable server-side renderer over a fixed set of component sources: the components are compiled and registered once, then renderToString can be called repeatedly (by tag) to produce Declarative Shadow DOM markup. This is the stable primitive meta-frameworks (Enhance/WebC/11ty/Rocket) call.

    interface Prerenderer {
        tags: string[];
        close(): void;
        renderToString(
            tagName: string,
            options?: RenderToStringOptions,
        ): Promise<string>;
    }
    Index
    tags: string[]

    The custom-element tag names registered in this renderer.

    • Tears down the underlying JSDOM window. Call when finished.

      Returns void

    • Renders one element to DSD markup (host + <template shadowrootmode> + light-DOM children).

      Parameters

      Returns Promise<string>