recordIframeContent
Record iframe content for later retrieval. In HTTP mode, the content is cached (by filename) either as a materialized string (when staticContent is true) or as a lambda that re-renders on each request. In filesystem mode, the content is written to <path>/<filename> immediately.
Used internally by com.kslides.playground and the letsPlot{} DSL; exposed publicly so custom extension DSLs in the same shape can reuse the caching pipeline.
Parameters
true when serving via Ktor, false when writing static files.
when useHttp is true, true caches the rendered string once; false caches the lambda so content is regenerated on every request.
owning KSlides instance (provides the shared iframe caches).
output directory for filesystem mode.
file / cache key for the iframe content.
produces the HTML payload for the iframe.