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

    Properties

    Methods

    Properties

    tags: string[]

    The custom-element tag names registered in this renderer.

    Methods

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

      Returns void