aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'askama_derive/src/config.rs')
-rw-r--r--askama_derive/src/config.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/askama_derive/src/config.rs b/askama_derive/src/config.rs
index 47801cd..2347f6c 100644
--- a/askama_derive/src/config.rs
+++ b/askama_derive/src/config.rs
@@ -299,7 +299,7 @@ pub(crate) fn get_template_source(tpl_path: &Path) -> std::result::Result<String
static CONFIG_FILE_NAME: &str = "askama.toml";
static DEFAULT_SYNTAX_NAME: &str = "default";
static DEFAULT_ESCAPERS: &[(&[&str], &str)] = &[
- (&["html", "htm", "xml"], "::askama::Html"),
+ (&["html", "htm", "svg", "xml"], "::askama::Html"),
(&["md", "none", "txt", "yml", ""], "::askama::Text"),
(&["j2", "jinja", "jinja2"], "::askama::Html"),
];
@@ -564,7 +564,10 @@ mod tests {
config.escapers,
vec![
(str_set(&["js"]), "::askama::Js".into()),
- (str_set(&["html", "htm", "xml"]), "::askama::Html".into()),
+ (
+ str_set(&["html", "htm", "svg", "xml"]),
+ "::askama::Html".into()
+ ),
(
str_set(&["md", "none", "txt", "yml", ""]),
"::askama::Text".into()