{% macro list(resource, action, xs) -%} {% if xs -%} {% set l = xs | length %} {{ xs | length }} {{ pluralize(l, resource) }} {{ pluralize(l, action) }} : {% for x in xs -%} - {{ x.date }} {{ x.name }} {{ x.amount | euros() }} {% endfor %} {% endif -%} {% endmacro %}