adding a template for the rss support :)
This commit is contained in:
parent
d63c0320f8
commit
9485ab95b2
16
LogBot/template.rss
Normal file
16
LogBot/template.rss
Normal file
@ -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…
Reference in New Issue
Block a user