{% if type == 'card' %} {% for i in "x"|ljust:count %}
{% endfor %} {% elif type == 'list' %} {% for i in "x"|ljust:count %}
{% endfor %} {% elif type == 'table' %}
{% for i in "x"|ljust:count %}
{% endfor %}
{% else %} {% for i in "x"|ljust:count %}
{% endfor %} {% endif %}