//! Route generation module - Modular route component generation system
//!
//! This module is organized into several sub-modules for better maintainability:
//! - `types`: Data structures and type definitions
//! - `loader`: Route configuration loading from TOML files
//! - `validation`: Route pattern conflict detection
//! - `generator`: Main route component generation logic
//! - `component_generator`: SSR and client component macro generation
//! - `boilerplate`: Client and SSR boilerplate generation
//! - `template`: Template-based page generation
//! - `deletion`: Page deletion and archival functionality
//! - `utils`: Helper functions and utilities

pub mod boilerplate;
pub mod component_generator;
pub mod deletion;
pub mod generator;
pub mod loader;
pub mod template;
pub mod types;
pub mod utils;
pub mod validation;

// Re-export the main public functions
pub use boilerplate::generate_page_boilerplate;
pub use generator::generate_route_components;
pub use loader::{apply_safety_defaults, load_routes_config};
pub use template::generate_pages_from_templates;
pub use types::{ComponentInfo, Route, RoutesConfig};
pub use rustelo_utils::{
    get_module_name_from_page_component, get_module_name_from_page_component_with_route,
};
