diff options
-rw-r--r-- | specs/sections.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/specs/sections.yml b/specs/sections.yml index d204bea..2d1e982 100644 --- a/specs/sections.yml +++ b/specs/sections.yml @@ -68,6 +68,21 @@ tests: template: '"{{#foo}} {{.}} is {{foo}} {{/foo}}"' expected: '"bar is bar"' + - name: List Contexts + desc: All elements on the context stack should be accessible within lists. + data: + tops: + - tname: + upper: "A" + lower: "a" + middles: + - mname: "1" + bottoms: + - bname: "x" + - bname: "y" + template: '{{#tops}}{{#middles}}{{tname.lower}}{{mname}}.{{#bottoms}}{{tname.upper}}{{mname}}{{bname}}.{{/bottoms}}{{/middles}}{{/tops}}' + expected: 'a1.A1x.A1y.' + - name: Deeply Nested Contexts desc: All elements on the context stack should be accessible. data: |