webls/rss
Types
A simple RSS channel
pub type RssChannel {
RssChannel(
title: String,
description: String,
link: String,
items: List(RssItem),
)
}
Constructors
-
RssChannel( title: String, description: String, link: String, items: List(RssItem), )
Arguments
-
title
The title of the RSS channel
-
description
The description of the RSS channel
-
link
The link to the top page of the RSS channel
-
items
The list of items in the RSS channel
-
A simple RSS item with optional author
pub type RssItem {
RssItem(
title: String,
link: String,
description: String,
pub_date: Time,
author: Option(String),
guid: #(String, Option(Bool)),
)
}
Constructors
-
RssItem( title: String, link: String, description: String, pub_date: Time, author: Option(String), guid: #(String, Option(Bool)), )
Arguments
-
title
The title of the RSS item
-
link
The link to the page the RSS item is on
-
description
The description of the RSS item
-
pub_date
The publication date of the RSS item
-
author
An optional author field, note RSS author must be email addresses
-
guid
A guid and an optional boolean for whether it is a permalink
-