Skip to main content

webfluent/codegen/
mod.rs

1//! Code generation — compiles the AST to HTML, CSS, JavaScript, SSG pages, and PDF.
2//!
3//! Each output format has its own module:
4//! - [`html`] — generates the HTML entry point (`index.html`)
5//! - [`css`] — generates design tokens and component styles (`styles.css`)
6//! - [`js`] — generates the JavaScript bundle with reactivity and routing (`app.js`)
7//! - [`ssg`] — pre-renders pages to static HTML for SSG mode
8//! - [`pdf`] — generates PDF documents with layout, tables, and typography
9
10pub mod html;
11pub mod css;
12pub mod js;
13pub mod ssg;
14pub mod pdf;
15
16pub use html::generate_html;
17pub use css::generate_css;
18pub use js::JsCodegen;
19pub use ssg::render_page_html;
20pub use pdf::PdfCodegen;