#[template_minify]Expand description
Reads an Askama template at compile time, minifies it, and injects it as
#[template(source = "...", ext = "...")].
Use it with Askama’s derive macro:
ⓘ
use askama::Template;
use askama_minify::template_minify;
#[template_minify(path = "index.html")]
#[derive(Template)]
struct IndexTemplate<'a> {
title: &'a str,
}Template paths are resolved from Askama’s configured directories, or
templates/ by default, with CARGO_MANIFEST_DIR as a compatibility fallback.