mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-01 06:51:15 +00:00
28 lines
783 B
Rust
28 lines
783 B
Rust
use askama::Template;
|
|
|
|
#[derive(Template)]
|
|
#[template(source = "", ext = "txt", config = "no-such-config.toml")]
|
|
struct NoSuchConfig;
|
|
|
|
#[derive(Template)]
|
|
#[template(source = "", ext = "txt", config = "folder-config.toml")]
|
|
struct FolderConfig;
|
|
|
|
#[derive(Template)]
|
|
#[template(source = "", ext = "txt", config = "delim-clash.toml")]
|
|
struct DelimClash;
|
|
|
|
#[derive(Template)]
|
|
#[template(source = "", ext = "txt", config = "delim-too-short.toml")]
|
|
struct DelimTooShort;
|
|
|
|
#[derive(Template)]
|
|
#[template(source = "<+a+> and <+b+>", config = "operator-plus-config.toml", syntax = "plus", ext = "txt")]
|
|
struct PlusOperator;
|
|
|
|
#[derive(Template)]
|
|
#[template(source = "<)a(> and <)b(>", config = "operator-paren-config.toml", syntax = "paren", ext = "txt")]
|
|
struct ParenOperator;
|
|
|
|
fn main() {}
|