Skip to content

Commit a27ee58

Browse files
committed
test: add one more test case for #487
1 parent 4f3def3 commit a27ee58

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/partial.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,5 +476,19 @@ name: there
476476
"#,
477477
hb.render("index", &()).unwrap()
478478
);
479+
480+
hb.register_template_string("partial2", "{{> @partial-block}}")
481+
.unwrap();
482+
let r2 = hb
483+
.render_template(
484+
r#"{{#> partial}}
485+
{{#> partial2}}
486+
:(
487+
{{/partial2}}
488+
{{/partial}}"#,
489+
&(),
490+
)
491+
.unwrap();
492+
assert_eq!(":(\n", r2);
479493
}
480494
}

0 commit comments

Comments
 (0)