From a4351eb51f51f6ff197b860381ba253693d16ea7 Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Sat, 17 Feb 2018 22:58:47 +0100 Subject: [PATCH] Add simple template for rss xml files --- templates/rss.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 templates/rss.xml diff --git a/templates/rss.xml b/templates/rss.xml new file mode 100644 index 0000000..d33fa8e --- /dev/null +++ b/templates/rss.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<rss version="2.0"> +{% for channel in channels %} + <channel> + <title>{{channel.title}}</title> + <link>{{channel.link}}</link> + <description>{{channel.description}}</description> + {% for item in channel.items %} + <item> + <title>{{item.title}}</title> + <link>{{item.link}}</link> + <description>{{item.description}}</description> + </item> + {% endfor %} + </channel> +{% endfor %} +</rss> -- GitLab