html-pipe 0.1.1

A basic html component builder
Documentation
  • Coverage
  • 0%
    0 out of 11 items documented0 out of 7 items with examples
  • Size
  • Source code size: 24.08 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.4 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jdrouet

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