I have a list of dictionaries where each dict has a boolean entry. I want to display the items that are True, along with the count of those items. I\'m using th
True
There is a list filter that will transform a generator into a list. So:
list
{{ my_list|selectattr('foo')|list|length }}