Struct tsukuyomi_askama::Askama
source · pub struct Askama(_);
Expand description
An implementor of Preset
for deriving the implementation of IntoResponse
to Askama templates.
Example
use askama::Template;
use tsukuyomi::IntoResponse;
#[derive(Template, IntoResponse)]
#[template(source = "Hello, {{name}}!", ext = "html")]
#[response(preset = "tsukuyomi_askama::Askama")]
struct Index {
name: String,
}