ThirdPartyPostRendererResource

A PostRendererResource that bundles required third-party libraries (scripts, styles, fonts) into the output, enabling fully offline HTML rendering.

Library inclusion is driven by ThirdPartyLibrary for global scripts and styles.

Since subdocuments share the root's lib/ directory (they reference it via a relative path), the set of bundled libraries is the union of those required by the root context and by every subdocument context in the same document complex.

Parameters

context

the root rendering context, used (together with its subdocument contexts) to evaluate library inclusion conditions

librariesLayout

the install layout node for the lib/ directory containing third-party library files, typically InstallLayout.Html.libraries. If null, no libraries are bundled.

Constructors

Link copied to clipboard
constructor(context: Context, librariesLayout: InstallLayoutDirectory?)

Properties

Link copied to clipboard

Whether this resource should be included in the output during live preview.

Functions

Link copied to clipboard
open override fun includeTo(resources: MutableSet<OutputResource>, rendered: CharSequence)

Collects resources and adds them to the output set.