Orze::Drivers::RSS - Create a RSS feed
Create a RSS feed by parsing a piece of html code. Each <h1> title will be the title of an entry of the feed, the text until the next <h1> will become the cotent of the entry. The id attribute of the title prefixed by a base url will become the permalink of the entry.
Such a design is intended to allow to share content between the feed and a webpage.
It uses the following variables:
The title of the feed
The description of the feed
The content.
The base url for the links
See XML::RSS for more information on the variables.
<page name="rss" extension="xml" driver="RSS"> <var name="feedtitle">Feed title</var> <var name="description">Feed description</var> <var name="content" src="Include" file="index.html"></var> <var name="url">http://gnagna.foo</var> </page>
index.html looks like:
<h1 id="foobar">Foo Bar</h1> Some text <h1 id="hello">Hello world</h1> Some other text
Lookt at XML::RSS.
Do the real processing
To install Orze, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Orze
CPAN shell
perl -MCPAN -e shell install Orze
For more information on module installation, please visit the detailed CPAN module installation guide.