dillonkearns/elm-rss/1.0.0

NOTE: the latest version is 2.0.5

Rss

{ title : String
, description : String
, url : String
, lastBuildTime : Posix
, generator : Maybe String
, items : List Item
, siteUrl : String
}
-> String

Generate an RSS feed from feed metadata and a list of Rss.Items.

type alias Item =
{ title : String
, description : String
, url : String
, categories : List String
, author : String
, pubDate : DateOrTime
, content : Maybe String
}

Data representing an RSS feed item.

= Date Date
| DateTime Posix

Can be one of:

  • Rss.Date - a Date value from justinmimbs/date, or
  • Rss.DateTime - a Time.Posix from elm/time.

If you pass in an Rss.Date, it will format it at 00:00:00 GMT on the given date (start of day). If you pass in an Rss.DateTime, it will format the time in UTC.