File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 5555 },
5656 "expected" : " X<Y<>>"
5757 },
58+ {
59+ "name" : " Nested" ,
60+ "desc" : " The greater-than operator should work from within partials." ,
61+ "data" : {
62+ "a" : " hello" ,
63+ "b" : " world"
64+ },
65+ "template" : " {{>outer}}" ,
66+ "partials" : {
67+ "outer" : " *{{a}} {{>inner}}*" ,
68+ "inner" : " {{b}}!"
69+ },
70+ "expected" : " *hello world!*"
71+ },
5872 {
5973 "name" : " Surrounding Whitespace" ,
6074 "desc" : " The greater-than operator should not alter surrounding whitespace." ,
Original file line number Diff line number Diff line change @@ -42,6 +42,13 @@ tests:
4242 partials : { node: '{{content}}<{{#nodes}}{{>node}}{{/nodes}}>' }
4343 expected : ' X<Y<>>'
4444
45+ - name : Nested
46+ desc : The greater-than operator should work from within partials.
47+ data : { a: "hello", b: "world" }
48+ template : ' {{>outer}}'
49+ partials : { outer: '*{{a}} {{>inner}}*', inner: '{{b}}!' }
50+ expected : ' *hello world!*'
51+
4552 # Whitespace Sensitivity
4653
4754 - name : Surrounding Whitespace
You can’t perform that action at this time.
0 commit comments