package minima-theme

  1. Overview
  2. Docs

Module Minima_themeSource

Port of Jekyll Minima theme as an OCaml library

v1.0.0 — homepage

Sourcetype t = {
  1. tmpl : string -> Soup.soup Soup.node;
}

Template handling

Sourceval v : ?base_dir:string -> unit -> t

v ?base_dir constructs a Minima_theme handler that uses templates from base_dir. If base_dir is not specified, it defaults to the value of opam config var minima-theme:share. This requires an active OPAM installation at the runtime of the library (this limitation will be lifted in a future release).

Convenience functions

Sourceval u : string -> Uri.t

u is a convenience alias for Uri.of_string

Sourceval replace_child : child:'a Soup.node -> Soup.element Soup.node -> unit
Sourceval replace_text : text:string -> Soup.element Soup.node -> unit