{% autoescape %}
{% set sessionconfigs = app.session.get('configs') %}
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>{{ app.session.get('appname') }}</title>
<link>{{ absolute_url(path("cadoles_core_home")) }}</link>
<description>{{ app.session.get('subappname') }}</description>
{% for feed in feeds %}
<item>
    {% if feed.url is defined %}
    <guid><![CDATA[{{feed.url}}]]></guid>
    {% endif %}
    {% if feed.title is defined %}
    <title>{{feed.title}}</title>
    {% endif %}
    {% if feed.author is defined %}
    <author>{{feed.author}}</author>
    {% endif %}
    {% if feed.category is defined %}
    <categories>{{ feed.category }}</categories>
    {% endif %}
    {% if feed.date is defined %}
    <pubDate>{{feed.date|date('D, d M Y H:i:s O')}}</pubDate>
    {% endif %}
    {% if feed.url is defined %}
    <link><![CDATA[{{feed.url}}]]></link>
    {% endif %}

    {% if feed.description is defined %}
    <description><![CDATA[{% autoescape 'html' %}{{feed.description|raw }}{% endautoescape %}]]></description>
    {% endif %}
</item>
{% endfor %}
</channel>
</rss>
{% endautoescape %}
