changeset 623:9c89e22516b4

GenshiTutorial: Minor updates to Atom feed templates.
author cmlenz
date Thu, 30 Aug 2007 23:01:49 +0000
parents dc35e9882390
children 1d23dddd6c2d
files examples/tutorial/geddit/templates/index.html examples/tutorial/geddit/templates/index.xml examples/tutorial/geddit/templates/info.xml
diffstat 3 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/examples/tutorial/geddit/templates/index.html
+++ b/examples/tutorial/geddit/templates/index.html
@@ -5,7 +5,7 @@
   <xi:include href="layout.html" />
   <head>
     <title>News</title>
-    <link rel="alternate" type="application/atom+xml" title="Geddit News"
+    <link rel="alternate" type="application/atom+xml" title="Geddit"
           href="${url('/feed/')}" />
   </head>
   <body>
--- a/examples/tutorial/geddit/templates/index.xml
+++ b/examples/tutorial/geddit/templates/index.xml
@@ -11,6 +11,7 @@
   <entry py:for="link in reversed(links)">
     <title>${link.url}</title>
     <link rel="alternate" href="${link.url}" type="text/html"/>
+    <link rel="via" href="${url('/info/%s/' % link.id)}" type="text/html"/>
     <id>${url('/info/%s/' % link.id)}</id>
     <author>
       <name>${link.username}</name>
--- a/examples/tutorial/geddit/templates/info.xml
+++ b/examples/tutorial/geddit/templates/info.xml
@@ -19,7 +19,7 @@
       <name>${comment.username}</name>
     </author>
     <updated>${comment.time.isoformat()}</updated>
-    <summary>${comment.content}</summary>
+    <content>${comment.content}</content>
   </entry>
 
 </feed>
Copyright (C) 2012-2017 Edgewall Software