FeedReader.FormatRegistry (FeedReader v0.1.0)

Copy Markdown

Ordered registry of built-in formats.

Built-ins are tried in RSS, Atom, then RDF order. Per-call custom formats can be appended with formats/1; duplicate modules are removed without changing the first occurrence's position.

Summary

Functions

Returns the statically ordered built-in format modules.

Returns built-ins followed by explicitly supplied formats, in stable order.

Functions

builtins()

@spec builtins() :: [module()]

Returns the statically ordered built-in format modules.

formats(custom_formats)

@spec formats([module()]) :: [module()]

Returns built-ins followed by explicitly supplied formats, in stable order.