package yocaml

  1. Overview
  2. Docs

Module Metadata.ArticlesSource

include INJECTABLE
Sourcetype t
Sourceval inject : (module Key_value.DESCRIBABLE with type t = 'a) -> t -> (string * 'a) list

Produces a structured object, compliant to a template input from a t.

Sourceval make : ?title:string -> ?description:string -> (Article.t * string) list -> t
Sourceval sort_articles_by_date : ?decreasing:bool -> t -> t
Sourceval articles : t -> (Article.t * string) list
Sourceval title : t -> string option
Sourceval description : t -> string option
Sourceval set_title : string option -> t -> t
Sourceval set_description : string option -> t -> t
Sourceval set_articles : (Article.t * string) list -> t -> t