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
122 downloads per month
Used in 2 crates
19KB
457 lines
auk
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