Expand description
§dendryform-html
Responsive HTML renderer for dendryform diagrams.
Consumes a LayoutPlan and
Theme to produce a self-contained HTML
file with embedded CSS. The output is dark-themed, responsive, and
interactive with hover states and animations.
§Quick Start
use dendryform_core::Theme;
use dendryform_html::render_html;
use dendryform_layout::compute_layout;
let diagram = dendryform_parse::parse_yaml_file("examples/taproot/architecture.yaml").unwrap();
let plan = compute_layout(&diagram).unwrap();
let html = render_html(&plan, &Theme::dark()).unwrap();
std::fs::write("output.html", html).unwrap();Enums§
- Render
Error - Errors that occur during HTML rendering.
Functions§
- render_
html - Renders a layout plan and theme into a self-contained HTML string.
- version
- Returns the version of the dendryform-html crate.