laby

Crates.iolaby
lib.rslaby
version0.4.1
sourcesrc
created_at2021-11-26 14:37:50.518036
updated_at2023-04-06 04:36:00.294864
descriptionSmall macro HTML templating library
homepage
repositoryhttps://github.com/chiyadev/laby
max_upload_size
id488050
size63,640
May (luaneko)

documentation

README

laby

Crate Docs Maintainer License Issues Contributors

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>
Commit count: 24

cargo fmt