Skip to main content

rustango_cms/page_builder/
mod.rs

1//! Page-type field builder — UI-defined body schemas.
2//!
3//! A **Developer** authors a page type's body structure in a visual
4//! builder (fields, rows, groups, repeaters, flexible-content zones,
5//! reusable components); the published schema renders in the normal page
6//! editor for **editors** to fill per page. Schemas are **versioned
7//! documents** in a migration-tracked table — no DDL ever runs on builder
8//! save/delete; page values live in one stable JSON store and upgrade
9//! lazily (mirroring `Block::version`/`migrate`).
10//!
11//! - [`schema`] — the authored node tree + validation
12//! - [`compile`](mod@compile) — schema → `Widget`s + [`dyn_block::DynBlockSet`]
13//! - [`dyn_block`] — UI-defined groups as `Block`-trait citizens
14//!
15//! Storage models, the builder UI, the page-editor bridge, public render,
16//! UI-created types, and i18n live in the sibling modules.
17
18pub mod choice_i18n;
19pub mod compile;
20pub mod db_type;
21pub mod dyn_block;
22pub mod model;
23pub mod schema;
24pub mod values;
25
26pub use compile::{compile, BodyItem, CompiledSchema, RuleBinding, FIELD_PREFIX};
27pub use db_type::{DbSchemaPageType, DEFAULT_SCHEMA_TEMPLATE};
28pub use dyn_block::{resolve as resolve_block, DynBlockDef, DynBlockSet};
29pub use model::{Component, PageBuilderData, PageTypeSchema};
30pub use schema::{parse as parse_schema, validate as validate_schema, ComponentEntry, Document};