Mercurial > genshi > mirror
changeset 623:58be58c03509 trunk
GenshiTutorial: Minor updates to Atom feed templates.
author | cmlenz |
---|---|
date | Thu, 30 Aug 2007 23:01:49 +0000 |
parents | 6780f1b1b20d |
children | dc657447f352 |
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>