Mercurial > hg > cmmr2012-drupal-site
diff core/modules/views/templates/views-view-rss.html.twig @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/modules/views/templates/views-view-rss.html.twig Thu Jul 05 14:24:15 2018 +0000 @@ -0,0 +1,30 @@ +{# +/** + * @file + * Default template for feed displays that use the RSS style. + * + * Available variables: + * - link: The link to the feed (the view path). + * - namespaces: The XML namespaces (added automatically). + * - title: The title of the feed (as set in the view). + * - description: The feed description (from feed settings). + * - langcode: The language encoding. + * - channel_elements: The formatted channel elements. + * - items: The feed items themselves. + * + * @see template_preprocess_views_view_rss() + * + * @ingroup themeable + */ +#} +<?xml version="1.0" encoding="utf-8" ?> +<rss version="2.0" xml:base="{{ link }}"{{ namespaces }}> + <channel> + <title>{{ title }}</title> + <link>{{ link }}</link> + <description>{{ description }}</description> + <language>{{ langcode }}</language> + {{ channel_elements }} + {{ items }} + </channel> +</rss>