{% for key,value in set.items %}User-agent: {{key}} {% for v in value %}Disallow: {{v}}{% endfor%} {% endfor %}