Expand description
Code generation — compiles the AST to various output formats.
Supports HTML (codegen::generate_html), CSS (codegen::generate_css),
JavaScript (codegen::JsCodegen), static site generation (codegen::render_page_html),
and PDF (codegen::PdfCodegen).
Code generation — compiles the AST to HTML, CSS, JavaScript, SSG pages, and PDF.
Each output format has its own module:
- [
html] — generates the HTML entry point (index.html) - [
css] — generates design tokens and component styles (styles.css) - [
js] — generates the JavaScript bundle with reactivity and routing (app.js) - [
ssg] — pre-renders pages to static HTML for SSG mode - [
pdf] — generates PDF documents with layout, tables, and typography
Re-exports§
pub use html::generate_html;pub use css::generate_css;pub use js::JsCodegen;pub use ssg::render_page_html;pub use pdf::PdfCodegen;