Crate auk

Source
Expand description

§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();

Modules§

Structs§

Enums§

Traits§

  • A trait for elements that can be modified.
  • A trait for elements that can have children.

Functions§