aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/ui/extends.rs
diff options
context:
space:
mode:
authorLibravatar Guillaume Gomez <guillaume1.gomez@gmail.com>2024-01-22 16:18:47 +0100
committerLibravatar Guillaume Gomez <guillaume1.gomez@gmail.com>2024-01-22 17:13:01 +0100
commit585a992246bf0602bd81b922eee8c7a6d27e9317 (patch)
treec203826021f373ea9505bf12f104bfcfeaebda17 /testing/tests/ui/extends.rs
parent29687db996307463ac2f4de01f67704e909dd1fe (diff)
downloadaskama-585a992246bf0602bd81b922eee8c7a6d27e9317.tar.gz
askama-585a992246bf0602bd81b922eee8c7a6d27e9317.tar.bz2
askama-585a992246bf0602bd81b922eee8c7a6d27e9317.zip
Add ui test for `extends` error
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() {
+}