aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testing/tests/inheritance.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/tests/inheritance.rs b/testing/tests/inheritance.rs
index 32028c4..c007dce 100644
--- a/testing/tests/inheritance.rs
+++ b/testing/tests/inheritance.rs
@@ -290,3 +290,17 @@ fn test_flat_deep() {
</html>"
);
}
+
+#[derive(Template)]
+#[template(path = "let-base.html")]
+struct LetBase {}
+
+#[derive(Template)]
+#[template(path = "let-child.html")]
+struct LetChild {}
+
+#[test]
+fn test_let_block() {
+ let t = LetChild {};
+ assert_eq!(t.render().unwrap(), "1");
+} \ No newline at end of file