Expand description
Schema → runtime compilation. Turns a validated
Document into the shapes the
existing engines consume:
- fixed fields / rows / groups →
Widgets (rendered by the shared_widget.htmlmacro; inputs namespacedpb__…), - repeaters / flex zones → one
WidgetKind::StreamWidgeteach +DynBlockDefs in aDynBlockSetoverlay, - conditional rules → flat
RuleBindings for the editor’s rules island + server-side visibility checks.
Compilation is cheap (no I/O) — callers compile per request from the published schema row + the component library.
Structs§
- Compiled
Schema - The compiled, render-ready schema.
- Rule
Binding - A conditional rule bound to the field it governs.
Enums§
- Body
Item - One editor-facing layout item, in authored order.
Constants§
- FIELD_
PREFIX - Prefix for every builder-owned form input — keeps UI-defined fields from colliding with base-page fields and code handlers’ extension fields.
Functions§
- compile
- Compile a validated document.
schema_versionis the published version (stamped on zone/repeater dyn blocks so stored entries carry it); component dyn blocks carry their own component version. - field_
to_ widget - Map one authored field into an admin
Widget, namespaced byprefix(pb__orpb__<group>__).