diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2012-11-09 00:35:28 -0500 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2012-11-09 00:35:28 -0500 |
| commit | 867e8acae887638beb5107fb7a5c9f3e403d06e0 (patch) | |
| tree | 8afbe0f128efe74236478133cf6b95e4178f4021 /templates/rss.xml | |
| parent | c21117dba95fd9d64c7f5120c752825080dc87d1 (diff) | |
| download | famille-flask-867e8acae887638beb5107fb7a5c9f3e403d06e0.tar.gz | |
add rss flux
Diffstat (limited to 'templates/rss.xml')
| -rw-r--r-- | templates/rss.xml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/rss.xml b/templates/rss.xml new file mode 100644 index 0000000..d0e7caa --- /dev/null +++ b/templates/rss.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<rss version="2.0"> +<channel> +<description>Actualités de la famille</description> +<link>http://famille.horel.org</link> +<title>Actualités de la la famille</title> + +{% for news in news %} +<item> +<title>{{news.title}}</title> +<author>{{news.name}}</author> +<link>http://famille.horel.org{{url_for('show_news', news_id=news.id)}}</link> +<description>{{news.content_cache}}</description> +<pubDate>{{news.date}}</pubDate> +<guid>{{news.id}}</guid> +</item> +{% endfor %} +</channel> +</rss> |
