The final topic that we'll examine is RSS feeds. An RSS feed is an XML format designed to let users subscribe to a 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 that 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, Building Your Own Model. To start, let's create a Controller to generate RSS feeds. As ...