Skip to main content

Crate momenta_ssr

Crate momenta_ssr 

Source
Expand description

Server-side rendering utilities for Momenta.

This crate provides:

  • Buffered HTML rendering
  • Chunked HTML rendering
  • Hydratable HTML output with stable element markers
  • Embedded JSON state blobs for client-side resume
  • Thin adapters for Axum, Actix, and Hyper

Structs§

HydrationOptions
RenderOptions

Constants§

DEFAULT_HYDRATION_STATE_ID
HYDRATION_ID_ATTR
HYDRATION_ROOT_ATTR

Functions§

render_component_to_chunks
render_component_to_hydration_string
render_component_to_string
render_hydration_state_script
render_to_chunks
render_to_hydration_string
render_to_string
render_to_string_with_options
render_to_writer