Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
o

StaticHtml

object StaticHtml

Renders concrete HTML DSL trees without mounting a LiveView.

Static rendering uses the same validation, escaping, and serialization as LiveView rendering. Server event bindings, flash content, managed streams, stateful LiveComponents, and nested LiveViews require lifecycle state and are therefore rejected. Client-only JS commands can be serialized, but require an initialized Phoenix LiveView client in the browser to execute.

Defined by scalive.StaticHtml. View source (scalive/render/src/scalive/StaticHtml.scala:37-80)

Methods1

render

def render(element: => HtmlElement[Nothing], includeDoctype: Boolean = ...): zio.package.IO[StaticHtmlError, String]

Renders element once, optionally prefixing the result with the HTML doctype.

Defined by scalive.StaticHtml.render. View source (scalive/render/src/scalive/StaticHtml.scala:39-53)