1%{--
2  - Copyright 2016 SimplifyOps, Inc. (http://simplifyops.com)
3  -
4  - Licensed under the Apache License, Version 2.0 (the "License");
5  - you may not use this file except in compliance with the License.
6  - You may obtain a copy of the License at
7  -
8  -     http://www.apache.org/licenses/LICENSE-2.0
9  -
10  - Unless required by applicable law or agreed to in writing, software
11  - distributed under the License is distributed on an "AS IS" BASIS,
12  - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  - See the License for the specific language governing permissions and
14  - limitations under the License.
15  --}%<%@ page contentType="text/xml;charset=UTF-8" %><?xml version="1.0" encoding="UTF-8"?>
16<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
17  <channel>
18    <title>${enc(xml:feedTitle)}</title>
19    <link>${enc(xml:feedLink)}</link>
20    <description>${enc(xml:feedDescription)}</description>
21
22    <g:each in="${items}" var="item">
23
24    <item>
25        <title>${enc(xml:item.title)}</title>
26        <link>${enc(xml:item.link)}</link>
27        <guid>${enc(xml:item.link)}</guid>
28        <g:if test="${item.description}">
29            <description>${enc(xml:item.description)}</description>
30        </g:if>
31        <g:elseif test="${item.templateName && item.model}">
32            <description>${render(template:item.templateName,model:item.model,encodeAs:'html')}</description>
33        </g:elseif>
34        <g:else>
35            <description></description>
36        </g:else>
37        <pubDate><g:rfc822Date date="${item.date}"/></pubDate>
38        ${raw('<dc:date>')}<g:w3cDate date="${item.date}"/>${raw('</dc:date>')}
39    </item>
40    </g:each>
41  </channel>
42</rss>
43