$ askama_derive

v0.15.5

Code generator of Askama templating engine

Downloads: 28.8M
Recent: 6.8M
Versions: 45
Updated: March 21, 2026

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());
}

Linkshttps://crates.io/crates/askamahttps://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

18.2M28.8M

$ VERSION HISTORY

v0.15.5March 21, 2026
v0.15.4January 28, 2026
v0.15.3January 27, 2026
v0.15.2January 27, 2026
v0.15.1December 28, 2025
v0.15.0December 22, 2025
v0.14.0April 23, 2025

$ LINKS

$ INSTALL

cargo add askama_derive

Or add to Cargo.toml: askama_derive = "0.15.5"