Expand description
auk
Auk is a DSL for writing HTML using standard Rust syntax.
Usage
use auk::*;
use auk::renderer::HtmlElementRenderer;
let content = html()
.child(head().child(title().child("Auk")))
.child(body().child(h1().child("Hello from Auk!")));
let rendered_html = HtmlElementRenderer::new()
.render_to_string(&content)
.unwrap();
Modules
- Constructs for rendering
HtmlElement
s to HTML. - Constructs for traversing and manipulating trees of
HtmlElement
s.
Structs
- An HTML element.
- A text element.
Enums
- A DOM element.
Traits
- A trait for elements that can have children.
Functions
- Returns a new
TextElement
with the given text.