Skip to main content

rustango_cms/forms/
mod.rs

1//! Visual Form Builder.
2//!
3//! Forms are **snippet-backed**: each form is a `Snippet` of `type_name`
4//! `"form"` whose `data` column holds a [`schema::Form`] JSON document.
5//! That gives reuse, folders, search, revisions (= versioning), and
6//! translations for free, and lets a form be embedded into any page via a
7//! dedicated `form` block.
8//!
9//! Module map (filled in per ticket):
10//! - [`schema`] — the form JSON contract + validation.
11//! - [`library_type`] — `FormLibraryType` snippet registration.
12//! - [`block`] — the embeddable `form` StreamField block.
13//! - [`render`] — schema → public HTML.
14
15pub mod block;
16pub mod library_type;
17pub mod render;
18pub mod schema;
19pub mod submit;