roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r219222 - /incubator/roller/trunk/web/WEB-INF/classes/flavors/atom.vm
Date Fri, 15 Jul 2005 17:36:01 GMT
Author: snoopdave
Date: Fri Jul 15 10:35:59 2005
New Revision: 219222

URL: http://svn.apache.org/viewcvs?rev=219222&view=rev
Log:
Atom 1.0 support

Modified:
    incubator/roller/trunk/web/WEB-INF/classes/flavors/atom.vm

Modified: incubator/roller/trunk/web/WEB-INF/classes/flavors/atom.vm
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/web/WEB-INF/classes/flavors/atom.vm?rev=219222&r1=219221&r2=219222&view=diff
==============================================================================
--- incubator/roller/trunk/web/WEB-INF/classes/flavors/atom.vm (original)
+++ incubator/roller/trunk/web/WEB-INF/classes/flavors/atom.vm Fri Jul 15 10:35:59 2005
@@ -1,29 +1,34 @@
-$pageHelper.setContentType("application/atom+xml;charset=utf-8")<?xml version="1.0" encoding='utf-8'?>
-<feed version="0.3" xmlns="http://purl.org/atom/ns#">
-    <title>$utilities.textToHTML($website.name,true)</title>
-    <tagline>$utilities.textToHTML($website.description,true)</tagline>
-    <link rel="alternate" type="text/html" href="$websiteURL" />
-    <modified>$utilities.formatIso8601Date($updateTime)</modified>
-    <generator url="http://www.rollerweblogger.org" version="#showVersion() ($rollerBuildTime:$rollerBuildUser)">Roller
Weblogger</generator>
-    #if( $userName != "zzz_none_zzz" )
-    <author>
-      <name>$fullName</name>
-      <url>$websiteURL</url>
-    </author>
-    #end
-    #set( $entries = $pageModel.getRecentWeblogEntriesArray($entryCount, 'nil') )
-    #foreach( $entry in $entries )
-    <entry>
-        <title>$utilities.textToHTML($entry.title,true)</title>
-        <issued>$utilities.formatIso8601Date($entry.pubTime)</issued>
-        <created>$utilities.formatIso8601Date($entry.pubTime)</created>
-        <modified>$utilities.formatIso8601Date($entry.updateTime)</modified>
-        #if( $userName == "zzz_none_zzz" )
-        <author><name>$entry.website.user.fullName</name></author>
-        #end
-        <link rel="alternate" type="text/html" href="$absBaseURL$entry.permaLink"/>
-        <id>tag:$host,$utilities.formatIso8601Day($entry.pubTime):/$entry.website.user.userName?entry=$entry.anchor</id>
-        <content type="text/html" mode="escaped">#showEntryDescription($entry)</content>
-    </entry>
-    #end
-</feed>
+$pageHelper.setContentType("application/atom+xml;charset=utf-8")<?xml version="1.0" encoding='utf-8'?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+    <title>$utilities.textToHTML($website.name,true)</title>
+    <subtitle>$utilities.textToHTML($website.description,true)</subtitle>
+    <link rel="alternate" type="text/html" href="$websiteURL" />
+    <updated>$utilities.formatIso8601Date($updateTime)</updated>
+    <generator uri="http://www.rollerweblogger.org" version="#showVersion() ($rollerBuildTime:$rollerBuildUser)">
+       Roller Weblogger
+    </generator>
+    #if( $userName != "zzz_none_zzz" )<author>
+      <name>$fullName</name>
+      <uri>$websiteURL</uri>
+    </author>#end
+    #set( $entries = $pageModel.getRecentWeblogEntriesArray($entryCount, 'nil') )
+    #foreach( $entry in $entries )
+    <entry>
+        <title>$utilities.textToHTML($entry.title,true)</title>
+        <id>tag:$host,$utilities.formatIso8601Day($entry.pubTime):/$entry.website.user.userName?entry=$utilities.textToHTML($entry.anchor)</id>
+        <link rel="alternate" type="text/html" href="$absBaseURL$entry.permaLink"/>
+        <published>$utilities.formatIso8601Date($entry.pubTime)</published>
+        <updated>$utilities.formatIso8601Date($entry.updateTime)</updated>
+        #if( $userName == "zzz_none_zzz" )<author><name>$entry.website.user.fullName</name></author>#end
+        <content type="html">#showEntryDescription($entry)</content>
+        #set( $mc_url = $entry.findEntryAttribute("att_mediacast_url") )
+        #set( $mc_type = $entry.findEntryAttribute("att_mediacast_type") )
+        #set( $mc_length = $entry.findEntryAttribute("att_mediacast_length") )
+        #if( $mc_url && $mc_length && $mc_type )
+        <link rel="enclosure" type="$mc_type" length="$mc_length" href="$mc_url"/>
+        #set($mc_url = false) #set($mc_type = false) #set($mc_length = false)
+        #end
+    </entry>
+    #end
+</feed>
+



Mime
View raw message