{
  "schema": "https://bars.commonsware.com/conformance/schema/partials-fixture.schema.json",
  "version": "0.1.0",
  "cases": [
    {
      "name": "partial-renders-against-current-context",
      "description": "A partial renders against the current context, so an identifier inside it resolves against the active scope.",
      "template": "Hello, {{> who }}!",
      "context": {
        "name": "Alice"
      },
      "partials": {
        "who": "{{ name }}"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "Hello, Alice!"
      }
    },
    {
      "name": "partial-inside-each-sees-loop-element",
      "description": "A partial used inside {{#each}} renders against the element the loop pushed onto the context stack.",
      "template": "{{#each member }}- {{> memberInfo }}\n{{/each}}",
      "context": {
        "member": [
          {
            "name": "Alice"
          },
          {
            "name": "Bob"
          }
        ]
      },
      "partials": {
        "memberInfo": "{{ name }}"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "- Alice\n- Bob\n"
      }
    },
    {
      "name": "dynamic-key-resolves-partial-from-context",
      "description": "A dynamic {{> (expr) }} key is evaluated against the context and used to resolve the partial.",
      "template": "{{> (which) }}",
      "context": {
        "which": "greeting",
        "name": "Alice"
      },
      "partials": {
        "greeting": "Hi {{ name }}"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "Hi Alice"
      }
    },
    {
      "name": "dynamic-key-with-inner-whitespace-resolves-identically",
      "description": "Whitespace immediately inside a dynamic partial key's parentheses is optional: '{{> ( which ) }}' renders identically to '{{> (which) }}' above.",
      "template": "{{> ( which ) }}",
      "context": {
        "which": "greeting",
        "name": "Alice"
      },
      "partials": {
        "greeting": "Hi {{ name }}"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "Hi Alice"
      }
    }
  ]
}
