The final topic that we'll examine is RSS feeds. An RSS feed is an XML format designed to let users subscribe to website and receive notification whenever a new article (or other piece of content) is posted. It works best for news sites or blogs.
RSS is beginning to be phased out in favor of Atom, which serves the same purpose but is an actual IETF standard. Users use RSS and Atom interchangeably and most RSS readers support Atom feeds. We'll be using the XML::Feed CPAN
module to generate the RSS feed, which can generate Atom and legacy RSS from the same code.
To demonstrate the concept of RSS, we'll add an RSS feed to our mini-blog program from Chapter 6. To start, let's create a Controller to generate RSS feeds. As the RSS feed is specific to one piece of data and no templating system is used to generate the Feed, we're going to do everything inside a controller. If your application has multiple sources of data that you want to create a View that converts the stash to an RSS feed, instead...