]> git.deb.at Git - deb/hackedgotchi.git/blobdiff - templates/foafroll.xml.dj
More django templates
[deb/hackedgotchi.git] / templates / foafroll.xml.dj
diff --git a/templates/foafroll.xml.dj b/templates/foafroll.xml.dj
new file mode 100644 (file)
index 0000000..211ba37
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<rdf:RDF
+       xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+       xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+       xmlns:foaf="http://xmlns.com/foaf/0.1/"
+       xmlns:rss="http://purl.org/rss/1.0/"
+       xmlns:dc="http://purl.org/dc/elements/1.1/"
+>
+<foaf:Group>
+       <foaf:name>{{ name }}</foaf:name>
+       <foaf:homepage>{{ link }}</foaf:homepage>
+       <rdfs:seeAlso rdf:resource="{{ url }}" />
+
+{% for channel in Channels %}
+       <foaf:member>
+               <foaf:Agent>
+                       <foaf:name>{{ channel.name }}</foaf:name>
+                       <foaf:weblog>
+                               <foaf:Document rdf:about="{{ channel.link }}">
+                                       <dc:title>{{ channel.title_plain }}</dc:title>
+                                       <rdfs:seeAlso>
+                                               <rss:channel rdf:about="{{ channel.url }}" />
+                                       </rdfs:seeAlso>
+                               </foaf:Document>
+                       </foaf:weblog>
+               </foaf:Agent>
+       </foaf:member>
+{% endfor %}
+
+</foaf:Group>
+</rdf:RDF>