diff options
author | vallentin <mail@vallentin.dev> | 2020-12-29 23:27:37 +0100 |
---|---|---|
committer | Christian Vallentin <vallentinsource@gmail.com> | 2020-12-29 23:48:41 +0100 |
commit | 929e9c2bcedb81388ae783a1cb829fbfbaab50dd (patch) | |
tree | 5ba611b4e1d7faa1a620b8ca44e36706adf8033a | |
parent | 6e3fdb47016731aa47ff1240fbef3014613ab876 (diff) | |
download | askama-929e9c2bcedb81388ae783a1cb829fbfbaab50dd.tar.gz askama-929e9c2bcedb81388ae783a1cb829fbfbaab50dd.tar.bz2 askama-929e9c2bcedb81388ae783a1cb829fbfbaab50dd.zip |
Fixed yaml filter generation
Diffstat (limited to '')
-rw-r--r-- | askama_shared/src/generator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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::{}({}, ", |