diff options
author | bott <mhpoin@gmail.com> | 2018-09-07 19:28:21 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-09-07 20:09:52 +0200 |
commit | 4f2176a3ad2d174c40617c9f3af13b6bd8270b29 (patch) | |
tree | f668ac581353be6086b8c95684887b8c1ca56e0c /testing/tests/macro.rs | |
parent | 49b0c95f6c60f96ab434efb53a52f1c2e35d1450 (diff) | |
download | askama-4f2176a3ad2d174c40617c9f3af13b6bd8270b29.tar.gz askama-4f2176a3ad2d174c40617c9f3af13b6bd8270b29.tar.bz2 askama-4f2176a3ad2d174c40617c9f3af13b6bd8270b29.zip |
Fix deep nested imports in macro calls
Diffstat (limited to 'testing/tests/macro.rs')
-rw-r--r-- | testing/tests/macro.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/tests/macro.rs b/testing/tests/macro.rs index 4e43d7c..77e0e59 100644 --- a/testing/tests/macro.rs +++ b/testing/tests/macro.rs @@ -36,3 +36,13 @@ fn test_nested() { let t = NestedTemplate; assert_eq!(t.render().unwrap(), "foo"); } + +#[derive(Template)] +#[template(path = "deep-import-parent.html")] +struct DeepImportTemplate; + +#[test] +fn test_deep_import() { + let t = DeepImportTemplate; + assert_eq!(t.render().unwrap(), "foo"); +} |