mustache

Mustache logic-less templates in OCaml
Library mustache
Module Mustache_types . Locs
type loc = {
loc_start : Lexing.position;
loc_end : Lexing.position;
}
type desc =
| String of string
| Escaped of dotted_name
| Section of section
| Unescaped of dotted_name
| Partial of partial
| Inverted_section of section
| Concat of t list
| Comment of string
and section = {
name : dotted_name;
contents : t;
}
and partial = {
indent : int;
name : name;
contents : t option Lazy.t;
}
and t = {
loc : loc;
desc : desc;
}