aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
authorLibravatar vallentin <mail@vallentin.dev>2020-12-29 23:27:37 +0100
committerLibravatar Christian Vallentin <vallentinsource@gmail.com>2020-12-29 23:48:41 +0100
commit929e9c2bcedb81388ae783a1cb829fbfbaab50dd (patch)
tree5ba611b4e1d7faa1a620b8ca44e36706adf8033a /askama_shared
parent6e3fdb47016731aa47ff1240fbef3014613ab876 (diff)
downloadaskama-929e9c2bcedb81388ae783a1cb829fbfbaab50dd.tar.gz
askama-929e9c2bcedb81388ae783a1cb829fbfbaab50dd.tar.bz2
askama-929e9c2bcedb81388ae783a1cb829fbfbaab50dd.zip
Fixed yaml filter generation
Diffstat (limited to '')
-rw-r--r--askama_shared/src/generator.rs2
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::{}({}, ",