The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Orze::Drivers::RSS - Create a RSS feed

DESCRIPTION

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:

feedtitle

The title of the feed

description

The description of the feed

content

The content.

url

The base url for the links

See XML::RSS for more information on the variables.

EXAMPLE

<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

SEE ALSO

Lookt at XML::RSS.

METHODS

process

Do the real processing