57 lines
1.2 KiB
JSON
57 lines
1.2 KiB
JSON
{
|
|
"some_global": "dog",
|
|
"loop": [
|
|
{
|
|
"person": {
|
|
"name": "Alice"
|
|
},
|
|
"friend": "Bob"
|
|
},
|
|
{
|
|
"person": {
|
|
"name": "Bob"
|
|
},
|
|
"friend": "Chris"
|
|
},
|
|
{
|
|
"person": {
|
|
"name": "Chris"
|
|
},
|
|
"friend": "Alice"
|
|
}
|
|
],
|
|
"explicit": {
|
|
"pet": "cat"
|
|
},
|
|
"deep_explicit": {
|
|
"explicit": {
|
|
"pet": "cat"
|
|
}
|
|
},
|
|
"empty_array": [],
|
|
"block": {
|
|
"message": {
|
|
"contents": "Explicit contexts are evaluated in the context of the block."
|
|
}
|
|
},
|
|
"inline_partial": {
|
|
"message": {
|
|
"contents": "Explicit contexts are evaluated in the context of the inline partial."
|
|
}
|
|
},
|
|
"contents": "Explicit contexts are evaluated in the global context.",
|
|
"partial_context": {
|
|
"block": {
|
|
"message": {
|
|
"contents": "Explicit contexts are evaluated in the context of the block inside the partial context."
|
|
}
|
|
},
|
|
"inline_partial": {
|
|
"message": {
|
|
"contents": "Explicit contexts are evaluated in the context of the inline partial inside the partial context."
|
|
}
|
|
},
|
|
"contents": "Explicit contexts are evaluated in the global context inside the partial context."
|
|
}
|
|
}
|