duster/js/test_cases/explicit_context_setting/input1.json

65 lines
1.3 KiB
JSON

{
"another_idx": {
"$idx": 21,
"$len": 22,
"other": 23
},
"block": {
"message": {
"contents": "Explicit contexts are evaluated in the context of the block."
}
},
"contents": "Explicit contexts are evaluated in the global context.",
"deep_explicit": {
"explicit": {
"pet": "cat"
}
},
"empty_array": [],
"explicit": {
"pet": "cat"
},
"has_idx": {
"$idx": 14
},
"inline_partial": {
"message": {
"contents": "Explicit contexts are evaluated in the context of the inline partial."
}
},
"loop": [
{
"friend": "Bob",
"person": {
"name": "Alice"
}
},
{
"friend": "Chris",
"person": {
"name": "Bob"
}
},
{
"friend": "Alice",
"person": {
"name": "Chris"
}
}
],
"partial_context": {
"block": {
"message": {
"contents": "Explicit contexts are evaluated in the context of the block inside the partial context."
}
},
"contents": "Explicit contexts are evaluated in the global context inside the partial context.",
"inline_partial": {
"message": {
"contents": "Explicit contexts are evaluated in the context of the inline partial inside the partial context."
}
}
},
"some_global": "dog"
}