Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 680 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 680 Bytes

auk

crates.io docs.rs crates.io

Auk is an eDSL 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();