aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2019-04-01 22:08:17 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2019-04-01 22:08:17 +0200
commita12f397c373ab69ddd5da6f738309b942201e1f6 (patch)
treeeb57f8d026c1bd873f3968b2c0da7de9ec7d8fd4 /askama_shared
parentb7108f0f5d7e5a4a2347958f411634bfd291864c (diff)
downloadaskama-a12f397c373ab69ddd5da6f738309b942201e1f6.tar.gz
askama-a12f397c373ab69ddd5da6f738309b942201e1f6.tar.bz2
askama-a12f397c373ab69ddd5da6f738309b942201e1f6.zip
Fix tests for extensions
Diffstat (limited to '')
-rw-r--r--askama_shared/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs
index 0d68120..ffc0351 100644
--- a/askama_shared/src/lib.rs
+++ b/askama_shared/src/lib.rs
@@ -225,7 +225,7 @@ static CONFIG_FILE_NAME: &str = "askama.toml";
static DEFAULT_SYNTAX_NAME: &str = "default";
static DEFAULT_ESCAPERS: &[(&[&str], &str)] = &[
(&["html", "htm", "xml"], "::askama::Html"),
- (&["none", "txt", ""], "::askama::Text"),
+ (&["md", "none", "txt", "yml", ""], "::askama::Text"),
(&["j2", "jinja", "jinja2"], "::askama::Html"),
];
@@ -404,7 +404,7 @@ mod tests {
vec![
(str_set(&["js"]), "::askama::Js".into()),
(str_set(&["html", "htm", "xml"]), "::askama::Html".into()),
- (str_set(&["md", "yml", "none", "txt", ""]), "::askama::Text".into()),
+ (str_set(&["md", "none", "txt", "yml", ""]), "::askama::Text".into()),
(str_set(&["j2", "jinja", "jinja2"]), "::askama::Html".into()),
]
);