Skip to main content

Crate seam_skeleton

Crate seam_skeleton 

Source

Modules§

ctr_check
slot_paths
slot_warning

Structs§

Axis
Axis describes one structural dimension that affects template rendering.
TemplateInvariantViolation
ViteDevInfo
Vite dev server info, threaded through the build pipeline to replace static asset references with Vite-served modules.

Functions§

check_template_invariants
extract_template
Extract a complete Slot Protocol v2 template from variant HTML strings.
sentinel_to_slots
Replace text sentinels %%SEAM:path%% with slot markers <!--seam:path-->. Also handle attribute sentinels: attr="%%SEAM:path%%" inside tags becomes a <!--seam:path:attr:attrName--> comment before the tag. Style sentinels: style="margin-top:%%SEAM:mt%%" inside tags becomes <!--seam:mt:style:margin-top--> comment before the tag.
wrap_document
Wrap a skeleton HTML fragment in a compact HTML5 document with asset references. Produces minimal single-line output for production templates. When dev_mode is true, injects a live reload SSE script before </body>. When vite is Some, replaces static CSS/JS refs with Vite dev server scripts.