{% macro label_tags(labels_json) %} {% for label in labels_json | from_json %} {{ label }} {% else %} - {% endfor %} {% endmacro %}