Open derkork opened 6 years ago
When you have a structure like this
foo: key1: value1 key2: value2
there is currently no easy way of extracting the keys of this map structure (key1, key2) inside of a template. This seems to be however something that is frequently useful so there should be a built-in filter for this.
key1
key2
{% set keys = node.foo | keys %}
When you have a structure like this
there is currently no easy way of extracting the keys of this map structure (
key1
,key2
) inside of a template. This seems to be however something that is frequently useful so there should be a built-in filter for this.