Skip to content

Commit bd11331

Browse files
authored
Merge pull request #18 from rgrinberg/expose-mustache-type
make Mustache.t non abstract
2 parents a641057 + 9011d12 commit bd11331

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

lib/mustache.mli

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,18 @@ module Json : sig (** Compatible with Ezjsonm *)
2020
| `O of (string * value) list ]
2121
end
2222

23-
type t
23+
type t =
24+
| String of string
25+
| Escaped of string
26+
| Section of section
27+
| Unescaped of string
28+
| Partial of string
29+
| Inverted_section of section
30+
| Concat of t list
31+
| Comment of string
32+
and section =
33+
{ name: string
34+
; contents: t }
2435

2536
(** Read *)
2637
val parse_lx : Lexing.lexbuf -> t

0 commit comments

Comments
 (0)