coyotes 0.1.3

An HTML component set and template processor
Documentation
  • Coverage
  • 0%
    0 out of 51 items documented0 out of 0 items with examples
  • Size
  • Source code size: 122.71 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 5.35 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 22s Average build duration of successful builds.
  • all releases: 16s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • w-lfpup/coyote-rs
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • taylor-vann

Coyote-rs

Create HTML documents in Rust.

HTML in, HTML out. No suprises, no dependencies.

Install

Coyote-rs is available on crates.io as coyotes:

cargo add coyotes

Or add directly from git:

cargo add --git https://github.com/w-lfpup/coyote-rs

Components

Create document fragments with coyote components.

use coyotes::{Component, tmpl};

fn hello_world() -> Component {
    tmpl("<p>hai :3</p>", [])
}

Document builders

Render html with document builders.

use coyotes::Html;

let html = Html::new();

if let Ok(document) = html.render(&hello_world()) {
    println!("{}", document);
};

The output will be:

<p>hai :3</p>

Spaces

Coyote does not add spaces or new lines.

Learn more about how coyote handles spacing.

License

Coyote-rs is released under the BSD 3-Clause License.