aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/simple.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-09-07 20:42:54 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-09-07 20:42:54 +0200
commitee9db1dbf441b0fd17058b56d39a27abf9d3e517 (patch)
tree4c1a5b7754a4bd85ad231e74ad0686039f7cedc6 /testing/tests/simple.rs
parent5503b945cc9ec274ae3d859330767e1088b13a52 (diff)
downloadaskama-ee9db1dbf441b0fd17058b56d39a27abf9d3e517.tar.gz
askama-ee9db1dbf441b0fd17058b56d39a27abf9d3e517.tar.bz2
askama-ee9db1dbf441b0fd17058b56d39a27abf9d3e517.zip
Make ext attribute mandatory for source-specified templates
Diffstat (limited to 'testing/tests/simple.rs')
-rw-r--r--testing/tests/simple.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs
index 57887c8..8fd61d2 100644
--- a/testing/tests/simple.rs
+++ b/testing/tests/simple.rs
@@ -184,7 +184,7 @@ fn test_composition() {
#[derive(Template)]
-#[template(source = "{{ foo }}")]
+#[template(source = "{{ foo }}", ext = "html")]
struct ImplicitEscapedTemplate<'a> {
foo: &'a str,
}
@@ -197,7 +197,7 @@ fn test_implicit_escaped() {
#[derive(Template)]
-#[template(source = "{{ foo }}", escape = "html")]
+#[template(source = "{{ foo }}", ext = "html", escape = "html")]
struct ExplicitEscapedTemplate<'a> {
foo: &'a str,
}
@@ -210,7 +210,7 @@ fn test_explicit_escaped() {
#[derive(Template)]
-#[template(source = "{{ foo }}", escape = "none")]
+#[template(source = "{{ foo }}", ext = "txt")]
struct UnescapedTemplate<'a> {
foo: &'a str,
}