Module Contract.Email_templateSource
Sourcetype t = {id : string;label : string;text : string;html : string option;created_at : Ptime.t;updated_at : Ptime.t;
} Sourceval of_yojson : Yojson__Safe.t -> t option Sourceval to_yojson :
t ->
[> `Assoc of (string * [> `Null | `String of string ]) list ] Sourceval set_html : string option -> t -> t Sourceval replace_element : string -> string -> string -> string Sourceval render :
(string * string) list ->
string ->
string option ->
string * string option Sourceval email_of_template :
?template:t ->
Sihl__.Contract_email.t ->
(string * string) list ->
Sihl__.Contract_email.t Lwt.t