$ askama_derive
v0.15.5Code generator of Askama templating engine
Latest Update Summary
Crate
Name: askama_derive New version: 0.15.0 Release date: 2025-12-22T14:45:15.199615Z
Crate readme
Short description Askama implements a template rendering engine based on Jinja.
Long description Askama generates type-safe Rust code from templates at compile time using a user-defined struct for the template's context. It supports template inheritance, loops, if/else statements, and includes. The templates must be valid UTF-8 and produce UTF-8 when rendered, all while benefiting from Rust's type safety and performance.
Features • Construct templates using a familiar, easy-to-use syntax • Safety provided by Rust's type system • Template code is compiled into your crate for optimal performance • Debugging features to assist in template development • Works on stable Rust
Code Examples Add to Cargo.toml
cargo add askama
Basic usage
use askama::Template;
#[derive(Template)]
#[template(path = "hello.html")]
struct HelloTemplate<'a> {
name: &'a str,
}
fn main() {
let hello = HelloTemplate { name: "world" };
println!("{}", hello.render().unwrap());
}
Links • https://crates.io/crates/askama • https://docs.rs/askama/ • https://askama.readthedocs.io/ • https://askama-rs.github.io/askama_playground/ • https://github.com/askama-rs/askama/issues
https://api.github.com/repos/askama-rs/askama/releases/272227890
Release info
Release version:
Release description
Code Examples
Patch update: 0.15.4 → 0.15.5
$ DOWNLOADS TREND
$ VERSION HISTORY
$ LINKS
$ INSTALL
cargo add askama_deriveOr add to Cargo.toml: askama_derive = "0.15.5"