Registry / other / sailfish

sailfish

JSON →
library0.11.1rscratesunverified

Simple, small, and extremely fast template engine for Rust.

# Cargo.toml [dependencies] sailfish = "0.11.1"
INSTALL
IMPORT
SIG · SAILFISH
S
sailfish
otherrustv0.11.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TemplateOnce
use sailfish::TemplateOnce;

Minimal Sailfish template rendering example.

use sailfish::TemplateOnce; #[derive(TemplateOnce)] #[template(path = "hello.stpl")] struct HelloTemplate { name: String, } fn main() { let template = HelloTemplate { name: "world".into() }; println!("{}", template.render_once().unwrap()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.11.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
sailfish — cargo add sailfish · libregistry