~ntt-pf-lab/nova/monkey_patch_notification

« back to all changes in this revision

Viewing changes to vendor/tornado/demos/blog/templates/feed.xml

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<feed xmlns="http://www.w3.org/2005/Atom">
 
3
  {% set date_format = "%Y-%m-%dT%H:%M:%SZ" %}
 
4
  <title>{{ escape(handler.settings["blog_title"]) }}</title>
 
5
  {% if len(entries) > 0 %}
 
6
    <updated>{{ max(e.updated for e in entries).strftime(date_format) }}</updated>
 
7
  {% else %}
 
8
    <updated>{{ datetime.datetime.utcnow().strftime(date_format) }}</updated>
 
9
  {% end %}
 
10
  <id>http://{{ request.host }}/</id>
 
11
  <link rel="alternate" href="http://{{ request.host }}/" title="{{ escape(handler.settings["blog_title"]) }}" type="text/html"/>
 
12
  <link rel="self" href="{{ request.full_url() }}" title="{{ escape(handler.settings["blog_title"]) }}" type="application/atom+xml"/>
 
13
  <author><name>{{ escape(handler.settings["blog_title"]) }}</name></author>
 
14
  {% for entry in entries %}
 
15
    <entry>
 
16
      <id>http://{{ request.host }}/entry/{{ entry.slug }}</id>
 
17
      <title type="text">{{ escape(entry.title) }}</title>
 
18
      <link href="http://{{ request.host }}/entry/{{ entry.slug }}" rel="alternate" type="text/html"/>
 
19
      <updated>{{ entry.updated.strftime(date_format) }}</updated>
 
20
      <published>{{ entry.published.strftime(date_format) }}</published>
 
21
      <content type="xhtml" xml:base="http://{{ request.host }}/">
 
22
        <div xmlns="http://www.w3.org/1999/xhtml">{{ entry.html }}</div>
 
23
      </content>
 
24
    </entry>
 
25
  {% end %}
 
26
</feed>