aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--askama_shared/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs
index 0daad1b..8014b88 100644
--- a/askama_shared/src/lib.rs
+++ b/askama_shared/src/lib.rs
@@ -226,6 +226,7 @@ static DEFAULT_SYNTAX_NAME: &str = "default";
static DEFAULT_ESCAPERS: &[(&[&str], &str)] = &[
(&["html", "htm", "xml"], "::askama::Html"),
(&["none", "txt", ""], "::askama::Text"),
+ (&["j2", "jinja", "jinja2"], "::askama::Html"),
];
#[cfg(test)]
@@ -404,6 +405,7 @@ mod tests {
(str_set(&["js"]), "::askama::Js".into()),
(str_set(&["html", "htm", "xml"]), "::askama::Html".into()),
(str_set(&["none", "txt", ""]), "::askama::Text".into()),
+ (str_set(&["j2", "jinja", "jinja2"]), "::askama::Html".into()),
]
);
}