There is a Seaside package extension that helps us to build such feeds in a manner similar to what we used to build XHTML for component rendering. Let’s create a news feed for our todo items.

Define the Feed Component. The package defines a root class named RRComponent that allows you to describe both the news feed channel (title, description, language, date of publication) and also the news items. Therefore, the next step is to create a new subclass of RRComponent named ToDoRssFeed. This will be the entry point of our feed generator. In our example, we don’t need extra instance variables.

Register the Component as Entry Point. Next we need to register the component at a fixed URL. The aggregator will use this URL to access the feed. We do this by adding a class side initialize method. Don’t forget to evaluate the code.