Expand description
HTML and WASM rendering backend for .crepus templates.
Use render_from_files for virtual-file builds, render_template_to_html for one-off
templates, and render_bundle for the crepus web build JSON bundle format.
Modules§
Macros§
- crepus_
refs - Generate typed DOM accessors for all
#idshorthand IDs reachable from a.crepusentry file.
Structs§
- SsrDocument
- Options for
render_ssr_document.
Functions§
- google_
fonts_ head_ markup <link rel="preconnect">and one Google Fontscss2stylesheet for the given families.- par_
render_ component_ file - Render all named components from a multi-component
.crepusfile in parallel. - par_
render_ from_ files - Render multiple entry points from a virtual file map in parallel (requires
parallelfeature). - render_
bundle - JSON bundle written by
crepus web buildascrepus-bundle.json. - render_
bundle_ with_ ssr - Parse
crepus-bundle.jsonand render with optional SSR markers. - render_
component_ file_ to_ html - Render one named component from a multi-component
.crepussource string. - render_
from_ files - Render an entry point from an in-memory file map — no filesystem access.
- render_
from_ files_ with_ ssr - Like
crate::render_from_fileswith optional SSR markers on the entry template. - render_
nodes_ to_ html - Render an already parsed AST node list to escaped HTML.
- render_
ssr_ document - Full HTML5 document: runs the template through
render_template_to_html_with_ssr, then wraps result. - render_
template_ to_ html - Parse a single
.crepustemplate string and render it to escaped HTML. - render_
template_ to_ html_ with_ hydration - Render a template to HTML with hydration markers injected.
- render_
template_ to_ html_ with_ ssr - Render like
crate::render_template_to_html. Withmarkers: true, emit hydration markers + manifest. - resolve_
include_ path - Resolve an
includepath, rejecting escapes outsidebase_dir. - serialize_
ctx_ for_ ssr - Serialize
TemplateContext::varsfor the hydration manifest (scalars, lists of flat objects, nested maps of scalars).