Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 927 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 927 Bytes

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>