document library

Semantic HTML documents for Odroe SSR, SSG, SEO, and GEO.

Classes

DocumentBranch
Loader data for the active document branch.
DocumentContext<P, S, D>
Typed input passed to a route document builder.
One link declaration in the document head.
DocumentMeta
One HTML metadata declaration.
DocumentRenderer
Renders semantic HTML and optional Flutter hydration state.
DocumentValues<P, S, D>
Typed params, search, and loader data for one active document route.
HtmlElement
One semantic HTML element.
HtmlFragment
A transparent group of sibling nodes.
HtmlNode
A node in a server-rendered semantic HTML tree.
HtmlOutlet
The insertion point for a matched descendant route document.
HtmlText
Escaped text content.
ResolvedDocument
A fully merged route document ready for HTML rendering.
RouteDocument
Route-owned semantic HTML and head information.

Extensions

AppRouteDocument on AppRoute<P, S, D>
Attaches semantic HTML generation to a neutral route definition.

Functions

buildDocuments(RouteMatches matches, Map<Object, RouteLoadResult> loads, {required AppContext app}) → Future<List<RouteDocument>>
Builds document fragments for a fully loaded route branch.
renderDocumentStart(ResolvedDocument document, {String? baseHref}) → String
Renders a resolved document's opening HTML, head, and semantic body.
resolveDocument(Iterable<RouteDocument> documents) → ResolvedDocument
Merges route-owned document fragments from root to leaf.

Typedefs

DocumentBuilder<P, S, D> = FutureOr<RouteDocument?> Function(DocumentContext<P, S, D> context)
Builds semantic HTML for one active route.