Added Atom feeds for snippets.

This commit is contained in:
Armin Ronacher 2010-05-05 17:26:28 +02:00
parent eac73e3dd4
commit 749e9ce7ac
4 changed files with 37 additions and 6 deletions

View file

@ -1,5 +1,9 @@
{% extends "snippets/layout.html" %}
{% block title %}{{ snippet.title }}{% endblock %}
{% block head %}
{{ super() }}
<link href="{{ url_for('comments_feed', id=snippet.id) }}" rel="alternate" title="Snippet Comments" type="application/atom+xml">
{% endblock %}
{% block body %}
<h2>{{ snippet.title }}</h2>
<p class=snippet-author>By {{ snippet.author.name }}