duster/js/test_cases/explicit_context_setting/input1.json
Tom Alexander 1152ff9974
Greatly expand the explicit_context_setting test.
Turns out explicit context setting works in a lot more places than the official dustjs pages indicate. Also some things don't make much sense (like setting it on a block works but not on an inline partial).
2020-05-24 18:16:16 -04:00

29 lines
337 B
JSON

{
"some_global": "dog",
"loop": [
{
"person": {
"name": "Alice"
}
},
{
"person": {
"name": "Bob"
}
},
{
"person": {
"name": "Chris"
}
}
],
"explicit": {
"pet": "cat"
},
"deep_explicit": {
"explicit": {
"pet": "cat"
}
}
}