aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/generator.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2019-01-10 17:20:18 +0100
committerLibravatar Juan Aguilar <mhpoin@gmail.com>2019-01-12 09:16:20 +0100
commit2dfc3a39eb4943eb5e320c631e7ae9e50ec6357d (patch)
tree696155c1b50f67e4e19e39eb3298baf6171c9b57 /askama_derive/src/generator.rs
parent467f4ade19fa34983de7e6f6d81c6b4d5ff140fe (diff)
downloadaskama-2dfc3a39eb4943eb5e320c631e7ae9e50ec6357d.tar.gz
askama-2dfc3a39eb4943eb5e320c631e7ae9e50ec6357d.tar.bz2
askama-2dfc3a39eb4943eb5e320c631e7ae9e50ec6357d.zip
Allow configuration of escape modes
Diffstat (limited to '')
-rw-r--r--askama_derive/src/generator.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs
index f6c83ec..955d588 100644
--- a/askama_derive/src/generator.rs
+++ b/askama_derive/src/generator.rs
@@ -738,7 +738,7 @@ impl<'a> Generator<'a> {
Wrapped => expr_buf.buf,
Unwrapped => format!(
"::askama::MarkupDisplay::new_unsafe(&{}, {})",
- expr_buf.buf, self.input.escaping
+ expr_buf.buf, self.input.escaper
),
};
@@ -879,7 +879,7 @@ impl<'a> Generator<'a> {
if name == "escape" || name == "safe" || name == "e" || name == "json" {
buf.write(&format!(
"::askama::filters::{}({}, &",
- name, self.input.escaping
+ name, self.input.escaper
));
} else if filters::BUILT_IN_FILTERS.contains(&name) {
buf.write(&format!("::askama::filters::{}(&", name));