2023-04-05

(sph web atom)

create atom syndication feeds with sxml

part of sph-lib

library description

https://en.wikipedia.org/wiki/Atom_%28standard%29#Atom_compared_to_RSS_2.0

http://atomenabled.org/developers/syndication/

https://tools.ietf.org/html/rfc4287

module name

(sph web atom)

exported bindings

procedure: atom-author a ... ->
name [#:email string #:uri string] -> sxml
procedure: atom-category term #:label #:scheme ->
string [#:scheme string #:label string] -> sxml
procedure: atom-content-source src #:type ->
string [#:type string] -> sxml
procedure: atom-content-text a ... ->
[#:type string] sxml ... -> sxml
procedure: atom-content-xhtml a ... ->
sxml ... -> sxml
wraps content in a div as required and sets the type appropriately
procedure: atom-contributor a ... ->
name [#:email string #:uri string] -> sxml
procedure: atom-entry id title updated #:authors #:categories #:content #:contributors #:link #:published #:rights #:source #:summary ->
::
string string integer:utc-posix-time/string
[#:authors string/atom-author/(atom-author ...)
#:categories string/atom-category/(atom-category ...)
#:contributors string/atom-contributor/(atom-contributor ...)
#:link string/atom-link
#:published integer:utc-posix-time/string
#:source sxml
#:summary text/atom-summary]
->
sxml
procedure: atom-feed id title updated #:categories #:contributors #:generator #:icon #:link #:logo #:rights #:subtitle #:authors content ... ->
::
string/number string integer:utc-posix-time/string
[#:authors string/atom-author/(atom-author ...)
#:link string/atom-link
#:categories string/atom-category/(atom-category ...)
#:contributors string/atom-contributor/(atom-contributor ...) #:generator string
#:icon string #:logo string #:rights string/atom-rights/(atom-rights ...)
#:subtitle string/atom-subtitle/(atom-subtitles ...)]
->
sxml
procedure: atom-person author? name #:email #:uri ->
boolean [#:email string #:uri string] -> sxml
author or contributor
procedure: atom-text tag #:type content ... ->
symbol [#:type string] sxml ... -> sxml
examples for type are \"text\", \"html\", \"xhtml\"
procedure: atom-text-xhtml tag content ... ->
symbol sxml ... -> sxml
wraps content in a div as required and sets the type appropriately
variable: sph-web-atom-description