mask

Replace a value from a list using another list as a reference.

1
{{$mask value valueDelimiter="|" values="val|val" replaceWith="val1|val2"}}
Example
format JSON XML
Data JSON
1
2
3
4
5
{
"Color": {
"name": "black"
}
}
Code
1
2
3
4
5
{{$mask Color.name
valueDelimiter="|"
values="black|white"
replaceWith="dark|light"
}}
Result
Data XML
1
<Color name="black"></Color>
HTML
1
2
3
4
5
{{$mask Color._name
valueDelimiter="|"
values="black|white"
replaceWith="dark|light"
}}
Result