Skip to content

portapack


portapack / index / bundleMultiPageHTML

Function: bundleMultiPageHTML()

bundleMultiPageHTML(pages, logger?): string

Defined in: core/bundler.ts:134

Combines multiple HTML pages into a single HTML file with client-side routing.

Parameters

pages

PageEntry[]

An array of PageEntry objects (each with a URL and HTML content).

logger?

Logger

Optional logger for diagnostics.

Returns

string

A complete HTML document as a string.

Throws

If the input is invalid or contains no usable pages.

Released under the MIT License