diff options
Diffstat (limited to '')
-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 fb54f88..4e43d7c 100644 --- a/testing/tests/macro.rs +++ b/testing/tests/macro.rs @@ -26,3 +26,13 @@ fn test_import() { let t = ImportTemplate { s: "foo" }; assert_eq!(t.render().unwrap(), "foo foo foo"); } + +#[derive(Template)] +#[template(path = "deep-nested-macro.html")] +struct NestedTemplate; + +#[test] +fn test_nested() { + let t = NestedTemplate; + assert_eq!(t.render().unwrap(), "foo"); +} |