File: rss_full.tt

package info (click to toggle)
libmojomojo-perl 1.12%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,524 kB
  • sloc: perl: 14,730; xml: 120; sh: 97; makefile: 8; ruby: 6
file content (23 lines) | stat: -rw-r--r-- 860 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>[ [% c.pref('name') %]
    ] Content for [% page.name_orig %].</title>
    <link>[%c.uri_for('view')%]</link>
    <description>[% loc('Recent changes in x', page.path) %]</description>
    <language>[% lang %]</language>
    <ttl>40</ttl>
[% FOREACH page IN pages %]
  [% IF c.check_permissions(page.path,c.user).view %]
    <item>
      <title>[% c.expand_wikilink( page.name_orig ) %]</title>
      <description><![CDATA[[% page.content.formatted(c) %]]]></description>
      <pubDate>[% page.content.pub_date%]</pubDate>
      <guid>[% c.uri_for(page.path) %]</guid>
      <link>[% c.uri_for(page.path) %]</link>
      <dc:creator>[% page.content.creator.login %]</dc:creator>
    </item>
  [% END %]
[% END %]
  </channel>
</rss>