]> git.deb.at Git - deb/hackedgotchi.git/commitdiff
Moved to using templates now under Subversion.
authormako <mako@c2f067bf-98e0-425f-9c98-e76020cfa380>
Thu, 6 Sep 2007 20:40:23 +0000 (20:40 +0000)
committermako <mako@c2f067bf-98e0-425f-9c98-e76020cfa380>
Thu, 6 Sep 2007 20:40:23 +0000 (20:40 +0000)
git-svn-id: svn+ssh://svn.debian.org/svn/planet-debian/trunk@814 c2f067bf-98e0-425f-9c98-e76020cfa380

config/config.ini
templates/foafroll.xml.tmpl [new file with mode: 0644]
templates/opml.xml.tmpl [new file with mode: 0644]
templates/rss10.xml.tmpl [new file with mode: 0644]
templates/rss20.xml.tmpl [new file with mode: 0644]

index 3638fcd6b24583d21b8a1ac80650f40b33756d04..c9a5a970c71f6f0118e07c426eae9c73ff1b69b9 100644 (file)
@@ -19,7 +19,7 @@ new_feed_items = 1
 log_level = DEBUG
 
 # template_files: Space-separated list of output template files
-template_files = templates/index.html.tmpl planet/examples/rss20.xml.tmpl planet/examples/rss10.xml.tmpl planet/examples/opml.xml.tmpl planet/examples/foafroll.xml.tmpl
+template_files = templates/index.html.tmpl templates/rss20.xml.tmpl templates/rss10.xml.tmpl templates/opml.xml.tmpl templates/foafroll.xml.tmpl
 
 # The following provide defaults for each template:
 # output_dir: Directory to place output files
diff --git a/templates/foafroll.xml.tmpl b/templates/foafroll.xml.tmpl
new file mode 100644 (file)
index 0000000..a78e3e8
--- /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><TMPL_VAR name ESCAPE="HTML"></foaf:name>
+       <foaf:homepage><TMPL_VAR link ESCAPE="HTML"></foaf:homepage>
+       <rdfs:seeAlso rdf:resource="<TMPL_VAR url ESCAPE="HTML">" />
+
+<TMPL_LOOP Channels>
+       <foaf:member>
+               <foaf:Agent>
+                       <foaf:name><TMPL_VAR name ESCAPE="HTML"></foaf:name>
+                       <foaf:weblog>
+                               <foaf:Document rdf:about="<TMPL_VAR link ESCAPE="HTML">">
+                                       <dc:title><TMPL_VAR title_plain ESCAPE="HTML"></dc:title>
+                                       <rdfs:seeAlso>
+                                               <rss:channel rdf:about="<TMPL_VAR url ESCAPE="HTML">" />
+                                       </rdfs:seeAlso>
+                               </foaf:Document>
+                       </foaf:weblog>
+               </foaf:Agent>
+       </foaf:member>
+</TMPL_LOOP>
+
+</foaf:Group>
+</rdf:RDF>
diff --git a/templates/opml.xml.tmpl b/templates/opml.xml.tmpl
new file mode 100644 (file)
index 0000000..b56ee5f
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<opml version="1.1">
+       <head>
+               <title><TMPL_VAR name ESCAPE="HTML"></title>
+               <dateModified><TMPL_VAR date_822></dateModified>
+               <ownerName><TMPL_VAR owner_name></ownerName>
+               <ownerEmail><TMPL_VAR owner_email></ownerEmail>
+       </head>
+       
+       <body>
+               <TMPL_LOOP Channels>
+               <outline type="rss" text="<TMPL_VAR name ESCAPE="HTML">" xmlUrl="<TMPL_VAR url ESCAPE="HTML">" title="<TMPL_IF title><TMPL_VAR title ESCAPE="HTML"></TMPL_IF><TMPL_UNLESS title><TMPL_VAR name ESCAPE="HTML"></TMPL_UNLESS>"<TMPL_IF channel_link> htmlUrl="<TMPL_VAR channel_link ESCAPE="HTML">"</TMPL_IF> />
+               </TMPL_LOOP>
+       </body>
+</opml>
diff --git a/templates/rss10.xml.tmpl b/templates/rss10.xml.tmpl
new file mode 100644 (file)
index 0000000..f4f01f3
--- /dev/null
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<rdf:RDF
+       xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+       xmlns:dc="http://purl.org/dc/elements/1.1/"
+       xmlns:foaf="http://xmlns.com/foaf/0.1/"
+       xmlns:content="http://purl.org/rss/1.0/modules/content/"
+       xmlns="http://purl.org/rss/1.0/"
+>
+<channel rdf:about="<TMPL_VAR link ESCAPE="HTML">">
+       <title><TMPL_VAR name ESCAPE="HTML"></title>
+       <link><TMPL_VAR link ESCAPE="HTML"></link>
+       <description><TMPL_VAR name ESCAPE="HTML"> - <TMPL_VAR link ESCAPE="HTML"></description>
+
+       <items>
+               <rdf:Seq>
+<TMPL_LOOP Items>
+                       <rdf:li rdf:resource="<TMPL_VAR id ESCAPE="HTML">" />
+</TMPL_LOOP>
+               </rdf:Seq>
+       </items>
+</channel>
+
+<TMPL_LOOP Items>
+<item rdf:about="<TMPL_VAR id ESCAPE="HTML">">
+       <title><TMPL_VAR channel_name ESCAPE="HTML"><TMPL_IF title>: <TMPL_VAR title_plain ESCAPE="HTML"></TMPL_IF></title>
+       <link><TMPL_VAR link ESCAPE="HTML"></link>
+       <TMPL_IF content>
+       <content:encoded><TMPL_VAR content ESCAPE="HTML"></content:encoded>
+       </TMPL_IF>
+       <dc:date><TMPL_VAR date_iso></dc:date>
+       <TMPL_IF author_name>
+       <dc:creator><TMPL_VAR author_name ESCAPE="HTML"></dc:creator>
+       </TMPL_IF>
+</item>
+</TMPL_LOOP>
+
+</rdf:RDF>
diff --git a/templates/rss20.xml.tmpl b/templates/rss20.xml.tmpl
new file mode 100644 (file)
index 0000000..ab95440
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<rss version="2.0">
+
+<channel>
+       <title><TMPL_VAR name></title>
+       <link><TMPL_VAR link ESCAPE="HTML"></link>
+       <language>en</language>
+       <description><TMPL_VAR name ESCAPE="HTML"> - <TMPL_VAR link ESCAPE="HTML"></description>
+
+<TMPL_LOOP Items>
+<item>
+       <title><TMPL_VAR channel_name ESCAPE="HTML"><TMPL_IF title>: <TMPL_VAR title_plain ESCAPE="HTML"></TMPL_IF></title>
+       <guid><TMPL_VAR id ESCAPE="HTML"></guid>
+       <link><TMPL_VAR link ESCAPE="HTML"></link>
+       <TMPL_IF content>
+       <description><TMPL_VAR content ESCAPE="HTML"></description>
+       </TMPL_IF>
+       <pubDate><TMPL_VAR date_822></pubDate>
+       <TMPL_IF author_email>
+       <TMPL_IF author_name>
+       <author><TMPL_VAR author_email ESCAPE="HTML"> (<TMPL_VAR author_name ESCAPE="HTML">)</author>
+       <TMPL_ELSE>
+       <author><TMPL_VAR author_email ESCAPE="HTML"></author>
+       </TMPL_IF>
+       </TMPL_IF>
+</item>
+</TMPL_LOOP>
+
+</channel>
+</rss>