[][src]Derive Macro reign_derive::Layout

#[derive(Layout)]

Denote an askama template as a layout.

This template should have a field called content.

Examples

use reign::prelude::*;

#[derive(Debug, Layout, Template)]
#[template(path = "different_layouts_dir/plain.html")]
pub struct Plain {
    pub content: String,
    pub title: String,
}