{
  "schema": "https://bars.commonsware.com/conformance/schema/partials-fixture.schema.json",
  "version": "0.1.0",
  "cases": [
    {
      "name": "context-argument-partial-renders-against-pushed-context",
      "description": "A {{> key contextExpr }} partial renders against the pushed context argument instead of the current context.",
      "template": "{{> who spouse }}",
      "context": {
        "name": "Outer",
        "spouse": {
          "name": "Inner"
        }
      },
      "partials": {
        "who": "{{ name }}"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "Inner"
      }
    },
    {
      "name": "context-argument-partial-pops-scope-after-rendering",
      "description": "After a context-argument partial renders, its pushed scope is popped and the outer context is restored.",
      "template": "{{> who spouse }}/{{ name }}",
      "context": {
        "name": "Outer",
        "spouse": {
          "name": "Inner"
        }
      },
      "partials": {
        "who": "{{ name }}"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "Inner/Outer"
      }
    }
  ]
}
