Buffered HTML
renderToHtmlStringfunction
Renders a stream of
RenderEvents into a single HTML string.This is a convenience function that collects all events from
renderToHtmland joins them into a single string. It is an Effect that resolves when the stream completes.
HTML rendering policy
StaticRenderingvariable
A boolean service that indicates whether the current rendering context is static.
If
true, the HTML renderer will optimize for static output, potentially skipping dynamic placeholder generation or other interactive features not needed for static HTML.
Hydratable HTML rendering
HtmlRenderTemplatevariable
A Layer that provides the
RenderTemplateservice implemented for HTML string generation.Using this layer enables templates to be rendered as HTML strings (e.g., for SSR) rather than DOM nodes. It sets the
RefSubject.CurrentComputedBehaviorto"one", indicating a single-pass render approach typical for HTML generation.
Static HTML rendering
StaticHtmlRenderTemplatevariable
A variant of
HtmlRenderTemplatethat enables static rendering optimizations.This layer provides the
RenderTemplateservice for HTML generation but also setsStaticRenderingtotrue, enabling optimizations for static content.
Streaming HTML
renderToHtmlfunction
Renders a stream of
RenderEvents into a stream of HTML strings.This function transforms the output of a template rendering process (which produces
RenderEvents) into a stream of strings suitable for HTML output (e.g., for Server-Side Rendering).