{% spaceless %}
{% for group, options, index in widget.optgroups %}{% with widget=options.0 %}
{{ widget.label }} {{ widget.label }}
{% include widget.template_name %}
{% endwith %}{% endfor %}
{% endspaceless %}