Is it possible to convert list of primitives to list of dicts using Jinja2 using list/map comprehensions?
Given this structure:
list:
- some_val
- some_val_2
Apply map
on every element to obtain:
list:
- statically_added: some_val
- statically_added: some_val_2
It is possible other way around: list_from_example|map(attribute="statically_added")|list