6 releases (breaking)

0.6.0 Dec 19, 2024
0.5.0 Aug 17, 2024
0.4.0 Aug 10, 2024
0.3.0 Jan 14, 2024
0.1.0 Jan 6, 2024

#129 in Template engine

Download history 14/week @ 2024-09-22 6/week @ 2024-09-29 1/week @ 2024-10-06 3/week @ 2024-10-13 1/week @ 2024-10-20 1/week @ 2024-11-17 6/week @ 2024-12-08 110/week @ 2024-12-15 6/week @ 2024-12-22

122 downloads per month
Used in 2 crates

MIT license

19KB
457 lines

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

Dependencies

~1MB
~15K SLoC