5 releases (breaking)
0.5.0 | Aug 17, 2024 |
---|---|
0.4.0 | Aug 10, 2024 |
0.3.0 | Jan 14, 2024 |
0.2.0 | Jan 6, 2024 |
0.1.0 | Jan 6, 2024 |
#128 in Template engine
25 downloads per month
Used in razorbill
18KB
422 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