{% for u in urls %} {{ u.loc }} {% if u.get('lastmod') %}{{ u.lastmod }}{% endif %} {{ u.changefreq }} {{ u.priority }} {% endfor %}