We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db0a6f7 commit 8742522Copy full SHA for 8742522
testing/tests/auxiliary/paths.rs
@@ -0,0 +1 @@
1
+define_template!();
testing/tests/paths.rs
@@ -0,0 +1,14 @@
+// This test ensures that template paths work even when created from another file.
2
+#[test]
3
+fn cross_file_paths() {
4
+macro_rules! define_template {
5
+ () => {
6
+ #[derive(askama::Template)]
7
+ #[template(path = "base-decl.txt")]
8
+ struct Empty {}
9
+ }
10
+}
11
+
12
+#[path = "./auxiliary/paths.rs"]
13
+mod a;
14
0 commit comments