module Model: sig .. end
Provides the types used in the data models that are merged with
templates.
type tvalue =
| |
Tnull |
| |
Tstr of string |
| |
Tint of int |
| |
Tfloat of float |
| |
Tbool of bool |
| |
Tlist of tlist |
| |
Thash of thash |
| |
Tfun of tfun |
A value in a template data model.
type tlist = tvalue list
The type contained in a Tlist: a list of
tvalues.
type thash = (string, tvalue) Hashtbl.t
The type contained in a Thash: a collection of
tvalues, each of which has a name.
type tfun = args:tvalue list -> tvalue
The type contained in a Tfun: a function that
takes tvalues as arguments, and returns a
tvalue.
exception Tfun_error of string
An exception that tfun functions can raise when
called by a template.