package yocaml

  1. Overview
  2. Docs
include INJECTABLE
type t
val 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.

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

Innovation. Community. Security.