From 929e9c2bcedb81388ae783a1cb829fbfbaab50dd Mon Sep 17 00:00:00 2001 From: vallentin Date: Tue, 29 Dec 2020 23:27:37 +0100 Subject: Fixed yaml filter generation --- askama_shared/src/generator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index 0e58de1..ce1ac08 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -1193,7 +1193,7 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> { return Err("the `yaml` filter requires the `serde-yaml` feature to be enabled".into()); } - const FILTERS: [&str; 4] = ["safe", "escape", "e", "json"]; + const FILTERS: [&str; 5] = ["safe", "escape", "e", "json", "yaml"]; if FILTERS.contains(&name) { buf.write(&format!( "::askama::filters::{}({}, ", -- cgit