Std.Html.Ssr
12 public declarations
- chunks
&Std.Html.Ssr.Plan -> &Map[Str, Std.Html.Html] -> Result[Array[Str], Std.Html.Ssr.RenderError]The page as its pieces, in order, so a caller may write them as they come.
- document
&Std.Html.Html -> Std.Html.Ssr.RenderedA whole view rendered with its length, without a plan.
- finish
&Std.Html.Ssr.Plan -> &Map[Str, Std.Html.Html] -> Result[Std.Html.Ssr.Rendered, Std.Html.Ssr.RenderError]The page with its length in bytes, which is what a response header needs.
- fragment
&Std.Html.Html -> Std.Html.Ssr.RenderedA view rendered with its length, without a plan.
- Piece
Part of a page: either fixed markup or a named hole.
- Plan
A page prepared once, ready to be filled and rendered many times.
- prepare
&Array[Std.Html.Ssr.Piece] -> Std.Html.Ssr.PlanRender static sections once; the plan never stores request-specific slots.
- Prepared
A piece after preparing: rendered text, or the hole still to fill.
- render
&Std.Html.Ssr.Plan -> &Map[Str, Std.Html.Html] -> Result[Str, Std.Html.Ssr.RenderError]The page as one piece of text.
- Rendered
A rendered page and its length in bytes.
- RenderError
Why a prepared page could not be rendered.
- renderWithin
&Std.Html.Ssr.Plan -> &Map[Str, Std.Html.Html] -> Int -> Result[Std.Html.Ssr.Rendered, Std.Html.Ssr.RenderError]The page, refused if it would exceed the given number of bytes.
