We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44c1e5a commit bc17d7eCopy full SHA for bc17d7e
src/partial.rs
@@ -451,4 +451,26 @@ name: there
451
"#
452
);
453
}
454
+
455
+ #[test]
456
+ fn test_nested_partial() {
457
+ let mut hb = Registry::new();
458
+ hb.register_template_string("partial", "{{> @partial-block}}")
459
+ .unwrap();
460
+ hb.register_template_string(
461
+ "index",
462
+ r#"{{#>partial}}
463
+ Yo
464
+ {{#>partial}}
465
+ Yo 2
466
+ {{/partial}}
467
+{{/partial}}"#,
468
+ )
469
470
+ assert_eq!(
471
+ r#" Yo
472
+ Yo 2"#,
473
+ hb.render("index", &()).unwrap()
474
+ );
475
+ }
476
0 commit comments