Had to sort the input to the explicit_context_setting test because dustjs leaves the original order but serde_json sorts the keys.
This commit is contained in:
parent
25eb9b10a0
commit
5b1e3c5fb0
@ -1,56 +1,56 @@
|
|||||||
{
|
{
|
||||||
"some_global": "dog",
|
"block": {
|
||||||
"loop": [
|
"message": {
|
||||||
{
|
"contents": "Explicit contexts are evaluated in the context of the block."
|
||||||
"person": {
|
|
||||||
"name": "Alice"
|
|
||||||
},
|
|
||||||
"friend": "Bob"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"person": {
|
|
||||||
"name": "Bob"
|
|
||||||
},
|
|
||||||
"friend": "Chris"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"person": {
|
|
||||||
"name": "Chris"
|
|
||||||
},
|
|
||||||
"friend": "Alice"
|
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"explicit": {
|
|
||||||
"pet": "cat"
|
|
||||||
},
|
},
|
||||||
|
"contents": "Explicit contexts are evaluated in the global context.",
|
||||||
"deep_explicit": {
|
"deep_explicit": {
|
||||||
"explicit": {
|
"explicit": {
|
||||||
"pet": "cat"
|
"pet": "cat"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"empty_array": [],
|
"empty_array": [],
|
||||||
"block": {
|
"explicit": {
|
||||||
"message": {
|
"pet": "cat"
|
||||||
"contents": "Explicit contexts are evaluated in the context of the block."
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"inline_partial": {
|
"inline_partial": {
|
||||||
"message": {
|
"message": {
|
||||||
"contents": "Explicit contexts are evaluated in the context of the inline partial."
|
"contents": "Explicit contexts are evaluated in the context of the inline partial."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"contents": "Explicit contexts are evaluated in the global context.",
|
"loop": [
|
||||||
|
{
|
||||||
|
"friend": "Bob",
|
||||||
|
"person": {
|
||||||
|
"name": "Alice"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"friend": "Chris",
|
||||||
|
"person": {
|
||||||
|
"name": "Bob"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"friend": "Alice",
|
||||||
|
"person": {
|
||||||
|
"name": "Chris"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
"partial_context": {
|
"partial_context": {
|
||||||
"block": {
|
"block": {
|
||||||
"message": {
|
"message": {
|
||||||
"contents": "Explicit contexts are evaluated in the context of the block inside the partial context."
|
"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": {
|
"inline_partial": {
|
||||||
"message": {
|
"message": {
|
||||||
"contents": "Explicit contexts are evaluated in the context of the inline partial inside the partial context."
|
"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."
|
},
|
||||||
}
|
"some_global": "dog"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user