Documentation - v0.0.10
    Preparing search index...
    • Server-side generation support for Indulgent DOM. This function takes an HTML document string and a context object containing signals, initializes Indulgent DOM bindings, and returns the updated HTML string.

      In practice, this runs the HTML in a headless browser environment using happy-dom, applies the Indulgent DOM bindings, and then extracts the final HTML and returns it.

      There is currently no state shared from the server to the client, so any signals used will be reset when the client-side script runs, although the html will be updated. This will hopefully be improved in the future.

      Parameters

      • directory: string

      Returns Promise<Record<string, string>>