DOKK / manpages / debian 10 / libmojomojo-perl / MojoMojo::Formatter::RSS.3pm.en
MojoMojo::Formatter::RSS(3pm) User Contributed Perl Documentation MojoMojo::Formatter::RSS(3pm)

Return true if the module is loaded.

MojoMojo::Formatter::RSS - Include RSS feeds on your page.

This formatter takes a feed in the format {{feed <url>}}, and passes it through XML::Feed to get a formatted feed suitable for inclusion in your page. It also caches them in the chosen Catalyst cache. By default it will render the first element in the feed, but it can take a numeric parameter to choose number of elements.

Format order can be 1-99. The RSS formatter runs on 6, after the Include), so that transcluding a page from the wiki that brings in a feed, will display the feed in the transcluded section as well.

Calls the formatter. Takes a ref to the content as well as the context object.

Returns HTML-formatted feed content for inclusion, up to a specified number of entries. Will store a cached version in "$c->cache".

MojoMojo, Module::Pluggable::Ordered, XML::Feed, URI::Fetch

Marcus Ramberg <mramberg@cpan.org>

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.

2018-01-13 perl v5.26.1