diff options
author | Leif Johansson <leifj@sunet.se> | 2011-05-12 22:45:07 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-05-12 22:45:07 +0200 |
commit | c7761b8a45ea79727e0b6dd4cbd51ed9790cca1c (patch) | |
tree | 8932c0faa0b40da3664ac8bc38b8188ea7bcde96 /src/templates/apps/room | |
parent | 3c3c4a20408d5a774e534847d18037e8679dec64 (diff) |
an atom feed too...
Diffstat (limited to 'src/templates/apps/room')
-rw-r--r-- | src/templates/apps/room/atom.xml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/templates/apps/room/atom.xml b/src/templates/apps/room/atom.xml new file mode 100644 index 0000000..91990ca --- /dev/null +++ b/src/templates/apps/room/atom.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +{% load prefix %} +<feed xmlns="http://www.w3.org/2005/Atom"> + <title>{{title}}</title> + <summary>{{description}}</summary> + <updated>{{date}}/updated> + <link rel="self" href="{{baseurl}}/room/+{{tags}}.atom"/> + <link href="{{baseurl}}/room/+{{tags}}"/> + {% if rooms %} + {% for room in rooms %} + <item> + <title>{{room.name}}</title> + {% if room.description %} + <summary>{{room.description}}</summary> + {% endif %} + <link href="{{room.go_url}}"/> + <updated>{{room.lastupdated}}</updated> + </item> + {% endfor %} + {% endif %} +</feed>
\ No newline at end of file |