-module(rally_runtime@ssr).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/rally_runtime/ssr.gleam").
-export([render_to_html/1]).
-if(?OTP_RELEASE >= 27).
-define(MODULEDOC(Str), -moduledoc(Str)).
-define(DOC(Str), -doc(Str)).
-else.
-define(MODULEDOC(Str), -compile([])).
-define(DOC(Str), -compile([])).
-endif.
-file("src/rally_runtime/ssr.gleam", 5).
?DOC(
" Render a Lustre element tree to a full HTML document string.\n"
" Used server-side during SSR.\n"
).
-spec render_to_html(lustre@vdom@vnode:element(any())) -> binary().
render_to_html(Element) ->
lustre@element:to_document_string(Element).