### ----------------------------------------------------
### -- Template::Mustache
### -- Licenses: Artistic-2.0
### -- Authors: Tim Smith, Richard Hainsworth
### -- File: t/specs/inheritable_sections.json
### ----------------------------------------------------
{
  "tests": [
    {
      "name": "Inheritable sections are not tied to rendered data: they render for missing values.",
      "data": { },
      "template": "{{$inheritable}}rendered{{/inheritable}}",
      "expected": "rendered"
    },
    {
      "name": "Inheritable sections are not tied to rendered data: they render for false values.",
      "data": { "inheritable": false },
      "template": "<{{$inheritable}}rendered{{/inheritable}}>",
      "expected": "<rendered>"
    },
    {
      "name": "Inheritable sections are not tied to rendered data: they render for empty lists.",
      "data": { "inheritable": [] },
      "template": "<{{$inheritable}}rendered{{/inheritable}}>",
      "expected": "<rendered>"
    },
    {
      "name": "Inheritable sections are not tied to rendered data: they do not open new contexts.",
      "data": { "subject": "rendered", "inheritable": { "subject": "ignored" } },
      "template": "<{{$inheritable}}{{subject}}{{/inheritable}}>",
      "expected": "<rendered>"
    },
    {
      "name": "Inheritable sections are not tied to rendered data: they do not render multiple times.",
      "data": { "inheritable": [0,1,2,3] },
      "template": "<{{$inheritable}}rendered{{/inheritable}}>",
      "expected": "<rendered>"
    }
  ]
}


