module

Plombir::Feeds::Rss

Constants

COLLECTION = "posts"

The collection feeding the feed, and its item cap.

FILENAME = "rss.xml"

Output filename under the output directory.

LIMIT = 20

Class methods

build(items : Array(Item), site : Config::Site) : String

Builds the feed for items (already newest-first, capped) with channel identity from site. The builder escapes every value.

Rss.build([Rss::Item.new("Hi", "/posts/hi/", nil, "Hey.", "<p>Hey.</p>")], Plombir::Config::Site.new)
Source
write(output_dir : String, items : Array(Item), site : Config::Site) : String

Writes the feed into output_dir, returning its path.

Source

Nested types