Crates.io | auk |
lib.rs | auk |
version | 0.5.0 |
source | src |
created_at | 2024-01-06 16:27:38.643546 |
updated_at | 2024-08-17 20:17:56.386232 |
description | An eDSL for writing HTML using standard Rust syntax. |
homepage | |
repository | https://github.com/maxdeviant/auk |
max_upload_size | |
id | 1091037 |
size | 22,793 |
Auk is an eDSL for writing HTML using standard Rust syntax.
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();