{% if widget %}{{ widget|safe }}{% endif %} {% for widget in widgets %} {{ widget|format }} {% endfor %}