1152ff9974
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).
29 lines
337 B
JSON
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"
|
|
}
|
|
}
|
|
}
|