injectSSR
Evaluate and inject SSR content into a larger HTML page, using a <main>
tag as the root element in the dom; apply domId, classes, and any additional attrs to the root element, if specified.
SSR script content will be loaded from the path node-prod.js
within the embedded asset section of the JAR (located at /embedded
at the time of this writing).
Parameters
ID of the root element to express within the DOM. Defaults to root
.
List of classes to apply to the root DOM element. Defaults to an empty class list.
Set of additional attribute pairs to apply in the DOM to the root element. Defaults to an empty set.
Path within the embedded asset area of the JAR from which to load the SSR script. Defaults to node-prod.js
, which is the default value used by the Node/Kotlin toolchain provided by Elide.
Resource folder path where embedded scripts are held. Defaults to embedded
.