package yocaml_syndication

  1. Overview
  2. Docs
On This Page
  1. Types
  2. Helpers
Yocaml plugin for dealing with RSS and Atom feed

Install

dune-project
 Dependency

Authors

Maintainers

Sources

yocaml-2.8.0.tbz
sha256=f14c1b2329b5440ba0091faf14709f7394f8274140f5db799ec260ac9caead66
sha512=9ab1f2968fb0cfe69acc7b530a43695938746c8a8489594cb637a212a1b73dbcef08012e3a75eb8fd86cd6cb70932c78f8a4bc64244b793a5b1874ec23f55ca4

doc/yocaml_syndication/Yocaml_syndication/Generator/index.html

Module Yocaml_syndication.GeneratorSource

Identifies the agent used to generate a feed, for debugging and other purposes.

Types

Sourcetype t = {
  1. name : string;
  2. uri : string option;
  3. version : string option;
}

Helpers

Sourceval make : ?uri:string -> ?version:string -> string -> t

make ?url ?version name constructs a feed generator. For Rss2, uri and version are ignored.

Sourceval to_atom : t -> Xml.node

Generate an Atom node.

Sourceval to_rss2 : t -> Xml.node

Generate a Rss2 node.

Sourceval yocaml : t

A default generator (referencing YOCaml).