From ee9db1dbf441b0fd17058b56d39a27abf9d3e517 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 7 Sep 2017 20:42:54 +0200 Subject: Make ext attribute mandatory for source-specified templates --- testing/tests/simple.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testing/tests/simple.rs') 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, } -- cgit