Browse Source

adding a template for the rss support :)

master
manetta 2 years ago
parent
commit
9485ab95b2
  1. 16
      LogBot/template.rss

16
LogBot/template.rss

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>{{ title }}</title>
<link>{{ log_path }}</link>
<description>Collective log writing using XMPP chat groups and LogBot.</description>
<lastBuildDate>{{ date }}</lastBuildDate>
{% for x, post in db["messages"].items() %}<item>
<title>{{ title }}</title>
<link>{{ log_path }}#{{ x }}</link>
<description>{{ post }}</description>
<dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">LogBot</dc:creator>
<pubDate>{{ post.date }}</pubDate>
</item>{% endfor %}
</channel>
</rss>
Loading…
Cancel
Save