Crates.io | blanket-rs |
lib.rs | blanket-rs |
version | 2.0.0-alpha-rc4 |
source | src |
created_at | 2024-01-24 12:47:03.195487 |
updated_at | 2024-03-23 23:33:07.192465 |
description | Static generator |
homepage | |
repository | https://github.com/oclyke/blanket-rs |
max_upload_size | |
id | 1112125 |
size | 844,757 |
static generator
to get started try the example: cargo run --example basic
then go ahead and start using the library in your own project =D
cargo add blanket-rs
fn main() {
fn run() -> Result<(), Box<dyn std::error::Error>> {
let mut builder = blanket_rs::builder::Builder::new();
builder.require(blanket_rs::resource::CopyFile::new("source/index.html", "dest/index.html"))?;
builder.generate()?;
Ok(())
}
run().expect("expected to exit successfully");
}
great question. there are a lot of options for static website generation in Rust - see alternatives - but for many use cases they are overkill. blanket is all about simplicity.
some simple pleasures
you should use blanket
you should not use blanket
some flavors that compliment blanket-rs
<Component />
syntax tools like render