html-pipe

Crates.iohtml-pipe
lib.rshtml-pipe
version0.1.1
sourcesrc
created_at2023-11-10 09:44:29.969745
updated_at2023-11-10 10:34:24.242725
descriptionA basic html component builder
homepage
repositoryhttps://github.com/jdrouet/html-pipe
max_upload_size
id1030863
size7,001
Jérémie Drouet (jdrouet)

documentation

README

HTML pipe

The goal of this crate is to make it easier to build html components on the server side and reuse them.

How to use

cargo add html-pipe
use html_pipe::*;

let mut buf = Buffer::new();
node("html", attr("lang", "en"), node("body", noop, text("Hello World!")))(&mut buf).unwrap();
assert_eq!(buf, "<html lang=\"en\"><body>Hello World</body></html>");

TODO

  • Add a function to chain function calls
  • Be able to stream the calls
Commit count: 0

cargo fmt