5个版本 (破坏性更新)
新增 0.5.0 | 2024年8月17日 |
---|---|
0.4.0 | 2024年8月10日 |
0.3.0 | 2024年1月14日 |
0.2.0 | 2024年1月6日 |
0.1.0 | 2024年1月6日 |
#121 在 模板引擎
每月269次下载
用于 razorbill
18KB
422 行
auk
Auk是一个eDSL,用于使用标准Rust语法编写HTML。
使用方法
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();
依赖
~1MB
~14K SLoC