Expand description
§RenderReport
Data-driven report generation with Typst as embedded render engine.
§Quick Start
ⓘ
use renderreport::{Engine, ReportBuilder, components::ScoreCard};
let engine = Engine::new()?;
let report = ReportBuilder::new("seo-audit")
.title("SEO Audit Report")
.add_component(ScoreCard::new("Overall Score", 85))
.build();
let pdf = engine.render_pdf(&report)?;
std::fs::write("report.pdf", pdf)?;Re-exports§
pub use components::Component;pub use components::ComponentId;pub use components::ComponentRegistry;pub use engine::Engine;pub use pack::Pack;pub use pack::PackId;pub use pack::PackLoader;pub use pack::PackManifest;pub use render::RenderOutput;pub use render::RenderRequest;pub use theme::Theme;pub use theme::ThemeTokens;pub use theme::TokenValue;
Modules§
- components
- Component system for building reports
- engine
- Core rendering engine
- pack
- Template pack system
- prelude
- Re-export commonly used types
- render
- Rendering functionality
- theme
- Theme system with CSS-variable-like tokens
- vfs
- Virtual filesystem for asset resolution
Enums§
- Error
- Main error type for RenderReport
Type Aliases§
- Result
- Convenience Result type