package mechaml

  1. Overview
  2. Docs

Module Mechaml.FormatSource

Format

This module contains type definitions and helpers to deal with some of the HTML5 formatted input types, such as dates, colors, range, etc. Each module corresponds to a form input type and implements a to_string function that generates a well-formed string from an internal representation. The generated string may then be put in a form using Page.Form.Field.set, for example. Each module provides a make function to create and manipulate this representation.

Sourcemodule type S = sig ... end

The common interface of all formatting modules

Sourcemodule Color : sig ... end
Sourcemodule Date : sig ... end
Sourcemodule Time : sig ... end
OCaml

Innovation. Community. Security.