Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Mustache.With_locationsVariant of the t mustache datatype which includes source-file locations, and associated functions.
val dummy_loc : locA value of type loc, guaranteed to be different from any valid location.
val parse_lx : Lexing.lexbuf -> tRead
val of_string : string -> tval pp : Format.formatter -> t -> unitpp fmt template print a template as raw mustache to the formatter fmt.
val to_formatter : Format.formatter -> t -> unitAlias for compatibility
val to_string : t -> stringto_string template uses to_formatter in order to return a string representing the template as raw mustache.
val render_fmt : ?strict:bool -> Format.formatter -> t -> Json.t -> unitrender_fmt fmt template json render template, filling it with data from json, printing it to formatter fmt.
render template json use render_fmt to render template with data from json and returns the resulting string.
val fold :
string:(loc:loc -> string -> 'a) ->
section:(loc:loc -> inverted:bool -> string -> 'a -> 'a) ->
escaped:(loc:loc -> string -> 'a) ->
unescaped:(loc:loc -> string -> 'a) ->
partial:(loc:loc -> string -> 'a) ->
comment:(loc:loc -> string -> 'a) ->
concat:(loc:loc -> 'a list -> 'a) ->
t ->
'afold template is the composition of f over parts of template, called in order of occurrence, where each f is one of the labelled arguments applied to the corresponding part. The default for f is the identity function.
expand_partials f template is template with f p substituted for each partial p.
module Infix : sig ... endShortcut for concatening two templates pieces.