auk

Crates.ioauk
lib.rsauk
version0.5.0
sourcesrc
created_at2024-01-06 16:27:38.643546
updated_at2024-08-17 20:17:56.386232
descriptionAn eDSL for writing HTML using standard Rust syntax.
homepage
repositoryhttps://github.com/maxdeviant/auk
max_upload_size
id1091037
size22,793
Marshall Bowers (maxdeviant)

documentation

https://docs.rs/auk

README

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();
Commit count: 0

cargo fmt