Skip to content
Svartz v2.6.0

@svartz/ui/runtime

7 exported symbols.

Types

t ContentComponentOverrides
t ContentComponents
t ContentComponentSlot

Functions

f noteStylesheetsStylesheet URLs for a host note route. Call it in the route's server `load` (`+page.server.ts`): it prepares the vault itself, and `hostStylesheets` is empty in the browser, so serialized server data must carry the SSR list.

Variables

v default
v SvartzNoteContentRenders one published note's body inside a host-owned page. The route's universal `load` must have awaited `prepareHostVault(pathname)` first. `stylesheets` comes from `await noteStylesheets(pathname)` in the route's server `load` (`+page.server.ts`); the helper prepares the vault itself, and only serialized server data keeps the SSR links because a universal `load` reruns in the browser where the registry is empty. For a pathname that is not a published note (or a vault that was not prepared) it renders nothing.
v SvartzPluginPage