winged-rust 1.0.0

Fast, type-safe HTML DSL and static site generation engine in Rust and WebAssembly
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! One import that gets you from nothing to a rendered page.
//!
//! ```
//! use winged_rust::prelude::*;
//!
//! let page = div().add_class("card").child(h1().text("Hello"));
//! assert_eq!(page.render(), r#"<div class="card"><h1>Hello</h1></div>"#);
//! ```
//!
//! This brings all 93 element constructors into scope. If that is too many names, import
//! [`crate::elements`] and qualify them instead.

pub use crate::core::{Attribute, Element, Node, Render, RenderOptions};
pub use crate::elements::*;