aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/ui/extends.rs
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tests/ui/extends.rs')
-rw-r--r--testing/tests/ui/extends.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/tests/ui/extends.rs b/testing/tests/ui/extends.rs
new file mode 100644
index 0000000..55c8b56
--- /dev/null
+++ b/testing/tests/ui/extends.rs
@@ -0,0 +1,18 @@
+use askama::Template;
+
+#[derive(Template)]
+#[template(
+ source = r#"{%- extends "whatever.html" %}"#,
+ ext = "html"
+)]
+struct ExtendsPre;
+
+#[derive(Template)]
+#[template(
+ source = r#"{% extends "whatever.html" -%}"#,
+ ext = "html"
+)]
+struct ExtendsPost;
+
+fn main() {
+}