show In Browser
fun ReportNode.Document.showInBrowser(ctx: RenderContext? = null, cssPath: Path? = null, css: String? = null): File(source)
Renders this document to HTML, writes it to a temporary file in ctx.outputDir, opens the file in the system default browser, and returns the written File.
CSS selection (evaluated in priority order):
cssPath non-null →
<link rel="stylesheet" href="...">is emitted; no inline<style>blockcss non-null → the supplied string is inlined in a
<style>blockBoth null (default) → the built-in KSL stylesheet is inlined
Parameters
ctx
shared render configuration; RenderContext.outputDir determines where the temporary file is placed
css Path
path to an external CSS file; when non-null a <link> tag is emitted and css is ignored
css
inline CSS string to embed in a <style> block; only used when cssPath is null; when both are null the built-in stylesheet is used