Crates.io | laby |
lib.rs | laby |
version | 0.4.1 |
source | src |
created_at | 2021-11-26 14:37:50.518036 |
updated_at | 2023-04-06 04:36:00.294864 |
description | Small macro HTML templating library |
homepage | |
repository | https://github.com/chiyadev/laby |
max_upload_size | |
id | 488050 |
size | 63,640 |
laby is a small macro library for writing HTML templates in Rust. Documentation
let n = html!(
head!(
title!("laby"),
),
body!(
p!("Hello, world!"),
),
);
let s = render!(DocType::HTML5, n);
<!DOCTYPE html><html><head><title>laby</title></head><body><p>Hello, world!</p></body></html>