{% from 'components/big-number.html' import big_number %} {% macro pill( items=[], current_value=None, big_number_args={'smaller': True}, show_count=True ) %} {% for label, option, link, count in items %} {% if current_value == option %} {% else %} {% endif %} {% if show_count %} {{ big_number(count, **big_number_args) }} {% endif %} {{ label | safe }} {% endfor %} {% endmacro %}