coyotes

Crates.iocoyotes
lib.rscoyotes
version0.1.7
created_at2025-12-02 06:11:12.788326+00
updated_at2025-12-14 06:02:17.393417+00
descriptionAn HTML component set and template processor
homepage
repositoryhttps://github.com/w-lfpup/coyote-rs
max_upload_size
id1961179
size148,044
Taylor Vann (taylor-vann)

documentation

README

Coyote-rs

Create HTML documents in Rust.

HTML in, HTML out.

No suprises, no dependencies.

Tests

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 never spaces or new lines. So what you write is what you get, breaking spaces and all.

Learn more about how coyote handles spacing.

License

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

Commit count: 0

cargo fmt