Dictionary unpacking
Merged on attribute
{% set dict1 = [
{
"title": "admin",
"workdays": "mon-fri",
"name": "rewsty",
}
] %}
{% set dict2 = [
{
"name": "rewsty",
"pay_rate": "all_the_moneys",
"start_date": "1-1-1970"
}
] %}
{{-
[
{ **dict_item1, **dict_item2}
for dict_item1 in dict1
for dict_item2 in dict2
if dict_item1["name"] == dict_item2["name"]
]
-}}Stacked dictionary
Straight merged
Last updated
Was this helpful?

